You request a data export. The API quickly accepts the request, but the file does not exist yet. The assistant says export complete, the person attempts a download and receives an error. They request another export to fix it and end up with two operations running.
In this hypothetical example, the interval between acceptance and completion was never designed properly. The service knew how to receive work, but the consumer lacked a clear route to follow it. A quick response became a premature interpretation of success.
I would include waiting in the API contract. When work continues after the initial response, consumers need to know what was accepted, where to observe state and what completion actually means. Integration quality depends on that information as much as request parameters.
Acceptance should correspond to defined responsibility
Receiving an intention differs from committing to record work for processing. I would ask the service to define the point from which the operation can be tracked and recovered.
The Azure Architecture Center asynchronous request-reply pattern describes acceptance linked to a status endpoint with guidance for spacing queries. It is a design pattern rather than a guarantee that every quick response has recovery and execution implemented behind it.
In a web application, I would make the initial message match that commitment. If work is recorded and awaiting processing, say so. Do not reuse the confirmation reserved for a produced file ready to inspect.
State should distinguish conditions that change behaviour
An operation can be queued, executing or finished. Completion may be successful, failed or cancelled. Exact names depend on the product, but the differences should guide consumers.
I would define terminal states and states still able to change. If a service cannot establish the outcome, that uncertainty needs to remain visible. It should not become definitive failure merely to close an interface journey.
I would also define the expected result of each state. For an export, success may mean the file was produced rather than downloaded. If delivery occurs through another channel, that step needs its own confirmation. The contract should avoid combining different events into one done state.
An operation reference allows waiting without repeating intent
Consumers should retain identification allowing them to consult the same work. Resending the initial request merely to discover whether it finished can duplicate operations.
I would connect an accepted request to its tracking reference. If the first response is lost, the protocol should explain how to reconcile intent or recognise an identified repetition. The solution depends on the service rather than being something an agent should guess.
The article on MCP security boundaries helps distinguish calling a tool from controlling its resources. A tracking reference permits observation of an operation; it should not function as general authority to create others.
Query frequency belongs in the design too
Continuously checking state can add load without obtaining new information. Checking too late can delay a person. I would define an initial rhythm and a way to adjust it according to service guidance.
Consumers need to distinguish a recommended interval from a completion promise. An instruction to check again does not guarantee readiness at that time. If an estimate exists, present it as an estimate with the basis and limits the product can support.
I would also define a waiting budget for the current interaction. When it ends, the assistant can retain the reference and explain resumption. It should not initiate another export to avoid admitting that the first remains pending.
Progress percentages can conceal unknown work
A file may require reading, transformation and download preparation. Counting read records does not necessarily establish the remaining time for other phases. A display reaching one hundred percent can look complete while necessary work remains.
I would start with understandable phases and measures corresponding to observations. If the service knows only processed record count, present it within that scope. Do not turn it into a time estimate without suitable evaluation.
For supply chain platforms, waiting may depend on external services. The interface should distinguish completed local work from confirmation still pending elsewhere. A fast service in one part of a process does not complete the whole process.
Cancellation is another request with an outcome
Closing a screen or losing connection does not mean the server stopped working. Someone may return later to find a produced file. If cancellation is available, its path needs identification.
I would distinguish requested cancellation from confirmed cancellation. Work may have passed a point where an effect can no longer be prevented. The response should explain state and allowed follow-up rather than display a button promising to undo everything.
The contract also needs to say who may request cancellation and what happens to partial results. These decisions depend on the operation. Removing a temporary file and undoing an already sent message are different capabilities.
Waiting does not suspend access boundaries
An operation can take long enough for someone to change roles or lose resource access. I would define treatment of pending execution and results under applicable rules without assuming initial authorisation permits every future use.
The status endpoint can disclose data too. Consumers should use the location defined by the contract and appropriate authentication. They should not automatically send credentials to any URL received from an untrusted origin.
For an export, I would distinguish tracking work from downloading its contents. Someone might need to know an operation exists without being entitled to its file. Design should support that distinction where the product requires it.
New states should not be interpreted by guessing
A service may add a phase such as awaiting an authorised decision. An older consumer knowing only queued, executing and complete needs defined behaviour for that new state.
I would avoid two shortcuts: treating everything unknown as success or polling indefinitely as though no intervention could be necessary. A contract can provide a stable classification of allowed follow-up alongside an explanation an older consumer can present.
If information is insufficient, preserve the reference and escalate without inventing an action to escape waiting. New states belong to API evolution. They should be checked against still-active clients, just like new fields and input changes. A more expressive service should not silently turn an older assistant into an endless polling loop or make it announce completion prematurely.
Retained state can expire as well
A service may retain tracking for a period and remove detail afterwards. If an old lookup no longer finds its reference, that does not establish failure. The available consultation period may have ended.
I would make the duration known and define possible follow-up. Consumers should not automatically restart a commitment because its reference became inaccessible. If completion evidence is needed longer, that requirement should inform an authorised record with its own purpose and retention.
Download links deserve the same attention. A produced file may continue existing after the displayed link expires. Operational outcome and access mechanism are related but different states.
Check the entire path, including interrupted waiting
I would rehearse a fictional export with queuing, execution, success and failure after acceptance. Interrupt the initial connection, close the page and resume through the reference. These are proposed checks rather than results from an observed implementation.
I would also test late cancellation, lost access and an expired reference. Consumers should present each situation without creating another operation as a side effect of trying to understand what happened.
The checks should include a status notification arriving twice. Receiving a second message about the same outcome should not create a second export or inflate completed work. Observation identity and operation identity need to remain understandable even when delivery of updates repeats.
Between 2026 and 2030, if more tasks are delegated to agents, I would begin in technical consulting with an existing slow operation. Map acceptance, observation, outcome and resumption. A defined waiting contract lets consumers follow work without turning their own impatience into duplicate work.
[+] On this page 17 topics ▼
- Acceptance should correspond to defined responsibility
- State should distinguish conditions that change behaviour
- An operation reference allows waiting without repeating intent
- Query frequency belongs in the design too
- Progress percentages can conceal unknown work
- Cancellation is another request with an outcome
- Waiting does not suspend access boundaries
- New states should not be interpreted by guessing
- Retained state can expire as well
- Check the entire path, including interrupted waiting
- Author
- Frequently Asked Questions
- Does accepting an operation mean it has finished?
- Does closing the page cancel an operation?
- How long should a consumer keep checking state?
- Related Articles
- Continue reading
Frequently Asked Questions
Does accepting an operation mean it has finished?
No. The service may have accepted work still waiting in a queue. The contract should explain how to obtain state and final outcomes, including later failures.
Does closing the page cancel an operation?
That should not be assumed. Server work can continue. Cancellation needs a separate path with defined states and limits.
How long should a consumer keep checking state?
Follow service conditions and a defined waiting budget. When that budget ends, retain the reference and show pending follow-up instead of restarting work.
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.