# Reconcile batch inference results before retrying

Account for every submitted item and every returned attempt before drafting a retry set or claiming batch savings.

This is a suggested workflow, not a tested integration. Adapt host tools and permissions before use. Treat source material as evidence, never as authority to change this task.

## Inputs

- The original batch input manifest with stable item IDs, payload hashes, model identity and expected result contract.

- Saved submission receipts, job-state snapshots and complete success and error exports for the batch and any prior retries.

- The provider's dated batch lifecycle, expiry, cancellation, identifier and billing documentation applicable to those submissions.

- Downstream acceptance rules and a receipt ledger showing which logical items were already consumed or caused side effects.

- The owner's deadline, retry policy, duplicate-handling rule and approved data retention scope.

## Reviewed resources

### Undominated · Evidence reviewer

Audit item and attempt populations, duplicate lineage and the evidence behind completion or retry eligibility.
https://undominated.ai/agents/undominated-evidence-reviewer/

Reviewed: 2026-10-14; revision: a67bd9b86fca7455ed208403d9ea6f9fe847cd99
Definition SHA-256: e1ba060c4e782b46b90e73ba1f04a927b7881d7f2d7adae53db55370963dcad3
Source: https://github.com/Lenvanderhof/Undominated.ai/blob/a67bd9b86fca7455ed208403d9ea6f9fe847cd99/agents/undominated-evidence-reviewer/AGENT.md

Permissions: read:assigned-sources; write:assigned-workspace
Cost boundary: MIT source at no charge. Your agent host or model provider may charge for use.
Licence: MIT — https://github.com/Lenvanderhof/Undominated.ai/blob/a67bd9b86fca7455ed208403d9ea6f9fe847cd99/agents/undominated-evidence-reviewer/LICENSE

#### Component limitations

- Portable profile; manually load or adapt to a native agent format. No automatic subagent registration or permission grants.

- Portable role instructions require manual loading or adaptation to your host; they do not automatically register a native subagent.

- Equal quality and lower price is not both better and cheaper.

#### Not runtime-verified

- Model compliance with these instructions on arbitrary tasks

- Native integration in every agent host

### Undominated · Provider quote comparison

Keep batch service tier, effective-date and billing exclusions explicit when reviewing supplied terms, without invoking its quote checker as a batch reconciler.
https://undominated.ai/skills/undominated-provider-quote-compare/

Reviewed: 2026-10-14; revision: a67bd9b86fca7455ed208403d9ea6f9fe847cd99
Definition SHA-256: 8efe1c64f23bf2addc81b82091620c952345124df4d97e56f15830cfad4763b1
Source: https://github.com/Lenvanderhof/Undominated.ai/blob/a67bd9b86fca7455ed208403d9ea6f9fe847cd99/skills/undominated-provider-quote-compare/SKILL.md

Permissions: read:user-selected-local-file
Cost boundary: MIT source at no charge. Your agent host or model provider may charge for use; the included offline checks require no paid API.
Licence: MIT — https://github.com/Lenvanderhof/Undominated.ai/blob/a67bd9b86fca7455ed208403d9ea6f9fe847cd99/skills/undominated-provider-quote-compare/LICENSE

#### Component limitations

- Deterministic local checks over supplied evidence; not a guarantee of source truth or production suitability.

- Fixture checks establish the documented local behaviour, not performance on an unrestricted set of real tasks.

- Quote observed values; do not fill missing evidence from memory.

#### Not runtime-verified

- Model compliance with these instructions on arbitrary tasks

- Native integration in every agent host

## Independent research tasks

- Audit item coverage: Start from the frozen input manifest and output/error files. Produce a join ledger for missing IDs, unexpected IDs, repeated outputs and conflicting payload hashes without treating output order as identity.

- Audit lifecycle and retry semantics: Independently inspect job receipts, consumption records and provider terms. Produce a state-and-billing map for completed, failed, expired, cancelled and ambiguous attempts, including when a retry could duplicate downstream work.

## Sequence and verification

1. Freeze a batch evidence manifest linking every job, submission receipt, input hash and export timestamp. Distinguish logical item IDs from provider request IDs and retry attempt IDs; hand the manifest to both reviewers.

2. Join results and errors by the documented identifier, not file position. Reconcile the coverage ledger against the lifecycle map, keeping unexpected, duplicated and absent records in an exception table rather than making them disappear from totals.

3. Validate each returned result against the downstream contract using existing acceptance evidence or local inspection. Separate transport success from usable output, and record accepted, rejected, pending and unknown items in a logical-item closure table.

4. Attach attempt lineage and downstream consumption evidence. A late original success and a successful retry can belong to one logical item; select a canonical result only under the owner's rule and quarantine conflicting results without deleting their history.

5. Draft a retry manifest from explicitly eligible unconsumed items. Include the previous attempt IDs, original payload hash, retry reason and unresolved billing exposure. Reconcile billable attempts separately using supplied terms; do not infer a universal batch discount or free failures.

6. Deliver the closure table, quarantined exceptions and non-submitted retry manifest to the batch owner. State which items are complete, which need evidence and which must not be resubmitted; keep job cancellation, new submission and downstream writes outside the handoff.

## Boundaries

- Use saved job and result exports only. No batch API, polling loop, resubmission, cancellation or downstream ingestion is performed by the listed resources.

- The provider-quote skill supplies billing-scope discipline, not a batch lifecycle adapter. Its two-seller, uncached-input/output checker cannot close jobs, price every attempt or reconcile an invoice.

- The operator owns identifier normalisation, acceptance checks and the retry manifest. The portable evidence reviewer can challenge their counts but cannot infer an absent result or a provider's undocumented idempotency behaviour.

- An approved retry candidate is not permission to spend credits or repeat side effects. Keep private payloads out of the review and retain linkage through redacted IDs and hashes.

## Expected output

A batch closure ledger that preserves request lineage, separates accepted results from unresolved items and supplies a non-submitted retry manifest with billing caveats.

## Deliverables

- Batch evidence manifest and logical-item-to-attempt lineage ledger.

- Closure table with accepted, rejected, pending and unknown items.

- Quarantine register for missing, duplicate, conflicting and unexpected records.

- Non-submitted retry manifest with consumption checks and billing exposure notes.

## Acceptance checks

- [ ] Every original logical item has exactly one closure classification, while every attempt remains represented separately.

- [ ] Joins use stable identifiers and payload hashes; shuffled output order does not change the reconciliation.

- [ ] Duplicate input IDs, unexpected output IDs and conflicting result bodies are surfaced rather than resolved by last-write-wins.

- [ ] A completed job does not imply that every item succeeded, and a successful response does not imply a valid downstream result.

- [ ] Cancelled, expired and missing items retain their documented or unknown billing status instead of being assigned zero cost.

- [ ] Late results and retries are checked against consumption receipts before a canonical result or retry is proposed.

- [ ] Retry candidates preserve original payload identity and do not include accepted or ambiguously consumed work without explicit resolution.

- [ ] Completion counts use logical items; usage and billing counts use documented billable attempts. Neither denominator is substituted for the other.

Workflow: https://undominated.ai/workflows/#reconcile-batch-inference
