Who reviews an error when an agent handoff is marked complete?

Who reviews an error when an agent handoff is marked complete?

Why ask whether a delegated task succeeded when the system already shows a result? Because a result field can contain an execution error, and an approved state describes a decision made about that field, not a quality test of its contents. This distinction matters most when one agent passes work to another. A human can release a response back to the requesting session, but that person first needs to know what the response actually says.

Consider a production team preparing its end-of-shift report. Its agent asks a procurement agent to summarise missing parts. The target agent starts, but a tool call or connection fails before a useful summary is produced. The requester has not yet seen the output. The person responsible for the procurement agent sees a result waiting for review. This is an illustrative situation, not a customer incident. It raises a specific organisational question: does the reviewer treat an error message as the requested procurement analysis?

Two approvals answer different questions

The A2A delegation guide for agentic-organization describes approval before the target agent runs, then another approval before the result returns to the originating session. The implementation in backend/api/a2a.py starts a request at pending_approval. Approval moves it to running, and execution later leaves it at pending_result_approval. Approving the result marks it completed and, where there is an originating session, triggers an attempt to assemble the delegation results. Our earlier article about agent handoffs explains why the delegation page and the human task-request inbox are separate paths. Here the narrower question is what counts as an acceptable result.

The first decision is about assignment: should this target agent work on this request? The second is about disclosure: should the produced text be returned to the requester as an answer? If execution were followed by automatic delivery, the recipient would inherit whatever the target produced without that review. Yet two approval buttons are not an accuracy guarantee. A person who clicks without reading has changed state, not verified the work.

The usual designated decision-maker is the target agent’s responsible human. The API also allows an authorised company-wide founder or executive to decide; if no responsible person was assigned, someone allowed to manage the target may decide. There is no enforced requirement for two different people to sign. The same authorised person may approve the task and later approve the result. Any organisation wanting independent eyes has to establish that working rule itself rather than assuming the interface provides separation of duties.

How can a failure become a reviewable result?

The background executor in backend/api/a2a.py collects text from the target agent. If execution raises an exception, it converts that exception into an error string. If no answer text arrives, it stores an empty-response marker. It then places the request in pending_result_approval. This branch does not create a distinct failed-execution status. The presence of text at the review step therefore does not establish that the requested analysis was completed. Making an error visible is helpful; classifying it as a successful business answer would be a different operation.

After approval, the compilation function waits until sibling requests from the same session are no longer in progress. It puts approved results into a formatted report and substitutes a rejection notice for rejected results. It does not call a model to reconcile contradictory answers or validate that the approved text fulfils the task. A reviewer who approves an exception string can therefore cause that string to appear in the originating session’s report as an approved result. This is a possible path in the code, not a claim that every execution failure is approved in practice.

Before approval, the API withholds the result from the requesting side while allowing a decision-maker to see it. That is a meaningful release boundary. It also puts a real obligation on the reviewer. The person needs to distinguish a useful answer from a failure message, a blank answer, or an answer that responds to a different task. The software records a decision; it does not replace the reviewer’s judgment about the work.

It is tempting to assume all task pathways recover from failures in the same way. They do not. In the human-created task-request flow, backend/api/task_requests.py moves a task back to the retryable assigned state after an execution error. In the A2A path, the execution error becomes text awaiting result approval. The two flows serve different entry points and have different failure states. An operational guide should name the pathway it describes rather than saying simply, “retry the task.”

What would each team need to check?

For production, the question might be whether the missing-parts list was actually read before the shift report is closed. Procurement may need to distinguish an unavailable supplier file from a valid comparison with zero matching parts. Finance should not mistake a failed lookup for a confirmed payment-terms summary. HR may ask whether the transferred context included employee information the target agent did not need. IT has to identify where the execution stopped and which record would help investigate it. These are examples of review criteria an organisation could choose, not departmental policies that ship ready-made in the platform.

A practical review can start with three pieces placed together: the task requested, the context sent, and the result produced. If the result is an exception string or an empty-response marker, record a rejection reason rather than approving it as an answer. If retrying is appropriate, treat the new delegation as a new decision and keep its relationship to the earlier failure visible in the team’s process. If the response looks plausible, check its scope and underlying material anyway. The system supplies approval states, not an automatic acceptance test for each department’s work.

This also changes how teams should read the word “completed.” In this flow it means a result was approved for return, not that procurement completed the intended analysis or that production verified the contents. Those assertions need evidence outside the state label. Naming who checks the output and what would make them reject it is a more useful operating agreement than relying on the colour of a status badge.

The point of a two-stage handoff is not to make agents send more work to one another. It is to expose where a task waits and who releases its output. ADR-0019 in agentic-organization frames agents as accountable to people and their work as something that needs review. The delegation flow turns that idea into two decision points, but the last one only helps when a reviewer is prepared to say, “This is an error, not the requested answer.”

Verification note: This article was checked against docs/adr/0019-one-agent-per-person-and-work-review.md, backend/api/a2a.py, backend/api/task_requests.py, and the documentation site’s docs/guide/delegation.md, docs/guide/tasks-and-inbox.md, and docs/developer-notes/known-limits.md. The production scenario is illustrative; the error string is not presented as an automatically verified result.