Someone uploads a spreadsheet to update product availability dates. The application says “import complete”. Checking the catalogue reveals updated products, one blocked product and another whose state remains unconfirmed. The assistant initiating the batch has already announced that everything is done.
In this hypothetical scenario, the aggregate message concealed operational differences. The batch reached the service, but that does not establish every row’s outcome. Finishing the remaining work requires knowing exactly which records were affected and what happened to each.
I would design the batch contract around that need. An overall state helps track an operation but should not replace individual outcomes when execution can be partial. Interfaces and agents need enough information to continue without guessing.
The envelope and its contents have different outcomes
A service can accept the batch format and reject individual operations afterwards. It can also accept work for later processing. Those responses belong to different levels of the process.
Microsoft Graph’s JSON batching documentation provides a concrete example: HTTP success for the batch does not confirm success for individual requests, which have their own states. This is not a universal rule for every API; it illustrates why consumers need to read the content’s contract.
In a web application, I would carry the distinction into user-facing text. “Batch received” and “all records in the desired state” are not interchangeable confirmations. Starting work should not produce the second message merely because the first was received.
Each request needs identity that survives ordering
The third response received may not concern the third submitted row. Parallel processing, repetition and pagination make position a fragile basis for matching requests and outcomes.
I would retain an item identifier within the request, the intended resource and the relevant operation. Consumers should match an outcome to its original row even when responses arrive in a different order. Duplicate or ambiguous identifiers need explicit handling before they cause indistinguishable changes.
I would also separate record identity from attempt identity. One product may need a second attempt without becoming two completed products. This distinction seems minor until a team tries to explain why its dashboard counts more successes than the spreadsheet contained rows.
Summaries should preserve states that change follow-up
Consider a fictional update covering six products:
| Product | Observed outcome | Required follow-up |
|---|---|---|
| A | Change confirmed | None for this objective |
| B | Change confirmed | None for this objective |
| C | Change confirmed | None for this objective |
| D | Already had the intended date | Preserve confirmation without counting a change |
| E | Rejected by a business condition | Correct or decide through an authorised path |
| F | Confirmation unavailable | Reconcile state before repeating |
Four products have a confirmed objective, of which three changed. One was rejected and one remains unknown. The response should not report four changes or treat the unknown result as a rejection.
If a later lookup confirms F, confirmed objectives become five. The new lookup does not create a seventh product. A current summary can evolve without erasing the history of observations supporting it.
Unknown is not a variation of failed
An interruption can occur after a service executes a change and before confirmation returns. Immediate repetition may duplicate effects, particularly when an operation triggers tasks or messages as well as changing a date.
I would first seek reconciliation through an operation or item identifier. If the service can confirm the intended state, the consumer no longer needs to infer the outcome from communication failure.
This does not remove the need for repeat protection. The contract should explain how to identify the same request, how long that identity remains recognised and what to do when the result stays unavailable. I would not call a loop safe simply because it repeats everything until the screen turns green.
A paginated report can be incomplete too
A large batch may have results spread across several pages. Reading only the first should not make a consumer declare the remaining items failed or complete. It needs to know the expected set and how to continue consultation.
I would preserve batch and item identities even when the report is presented in parts. If processing continues, the contract should explain whether pages represent a stable observation or a view that can change. Consumers should not combine pages from different moments and present an exact count without understanding that condition.
I would also distinguish total items from outcomes already known. A temporarily unavailable report page does not change the number of requested products. It changes the ability to confirm their outcomes at that moment. That distinction needs to survive both an exported report and the summary an agent presents to its user.
One rejection should not affect other items without a rule
Some operations should be independent; others make sense as an indivisible group. Updating dates for separate products may allow partial completion. Moving quantity between two locations may require corresponding steps to be handled together.
I would make that choice explicit. If the service promises atomicity, implementation needs to guarantee the promise’s scope. External effects do not become transactional merely because the request arrived in one file.
Where dependencies exist, an item may remain unexecuted because a prerequisite failed. That deserves a state distinct from an attempt that ran and was rejected. People need to know whether to fix the original blocker or investigate the dependent item.
Repetition should preserve intent and check the present
After correcting E, the team might repeat only that item. Meanwhile, another update could have reached the product. Blindly reusing original data might overwrite a newer change the person never saw.
I would connect repetition with original intent and relevant resource conditions. If the basis changed, the consumer should receive that difference and request the necessary decision. Repeating does not suspend concurrency rules or authorisation.
For supply chain platforms, this matters when suppliers and teams update data concurrently. A pending operation should not gain permanent priority over newer information merely because it started first.
Individual outcomes need access and retention rules too
An error export can combine information from many records. Someone authorised to initiate a batch may have different access when they inspect its report. I would check results under applicable resource and report rules.
Detail should help correction without distributing unnecessary internal diagnostics. An occurrence identifier can let engineering investigate while the user receives a business reason they are allowed to inspect.
The article on MCP tool security boundaries frames that control in the service providing resources. A batch report should not become a permanently accessible copy of every processed record.
Deliberately check partial completion
I would prepare a fictional batch containing a change, an already correct state, a rejection and interrupted confirmation. Change result ordering and repeat an identified attempt. Check that counts remain connected to records and objectives rather than messages. These are proposed tests, not measured results.
I would also check whether someone can select only pending work and understand why each item needs different follow-up. A technically correct file containing every state can still be useless to someone trying to finish the task.
The test should include a changed resource between attempts. Otherwise, a consumer may appear correct while never demonstrating how it handles fresh information conflicting with its original input. Recovery is part of the batch contract rather than a separate interface concern.
Between 2026 and 2030, if agents initiate more bulk operations, I would begin in technical consulting with outcome contracts. The desired improvement is concrete: explain what changed, what was already correct, what was rejected and what still needs confirmation before acting again.
[+] On this page 16 topics ▼
- The envelope and its contents have different outcomes
- Each request needs identity that survives ordering
- Summaries should preserve states that change follow-up
- Unknown is not a variation of failed
- A paginated report can be incomplete too
- One rejection should not affect other items without a rule
- Repetition should preserve intent and check the present
- Individual outcomes need access and retention rules too
- Deliberately check partial completion
- Author
- Frequently Asked Questions
- Does HTTP success confirm every item in a batch?
- Should the entire batch be repeated when one item fails?
- Does an item already in the desired state count as a change?
- Related Articles
- Continue reading
Frequently Asked Questions
Does HTTP success confirm every item in a batch?
That depends on the contract. It may confirm only receipt or interpretation of the batch. Consumers need the individual outcomes defined by the API.
Should the entire batch be repeated when one item fails?
Not by default. First distinguish rejections, retryable failures and unknown results. Repetition should respect identity, current conditions and protection against duplicate effects.
Does an item already in the desired state count as a change?
No. It can count as a confirmed objective but should remain separate from changed items. Attempts should not inflate the number of completed records either.
Related
Start your project
Need a website that earns trust, ranks in search, and gives your business a stronger digital presence? Start the conversation here.