コンテンツにスキップ

When Delegated Work Fails, and Who Owns It

このコンテンツはまだ日本語訳がありません。

Module 4 of 4 in the chapter Agent-to-Agent Integration, chapter 23 of the Integration Architect course. Each module stands on its own. Previous: Across Vendors: Agent Cards and Tasks · Next chapter: What I Would Architect

The question this module answers: When one agent hands work to another and it goes wrong, what does the design do, who tells the customer, and which person answers for it?

At Dreamforce 2026 I put up a slide called “Generated isn’t governed.” Automation does not equal control. AI changes execution, not accountability. Humans remain accountable for what is accepted and deployed.

I said it about AI writing code and configuration. It’s just as true when one agent hands work to another. The work moved. The responsibility didn’t. When a customer’s claim goes to a specialist agent and comes back wrong, or doesn’t come back at all, the customer doesn’t care which agent dropped it. They want to know what happens now, and somebody in your company has to have an answer.

This whole course has said it about integrations: every arrow fails sooner or later, so plan the failure before you build the arrow (chapter 14). An agent handing work to an agent is an arrow. This module is that plan.

Module 3 gave you the task and its states. Four endings need a plan, and they’re not the same.

EndingWhat it meansWhat your side does
FailedThe agent tried, and “finished with an error.”Read the error. A temporary failure can be retried; a permanent one can’t.
RejectedThe agent “decided to not perform the task,” at the start or part way through.Don’t retry the same request. Send it somewhere else, or to a person.
CancelledSomeone stopped it before it finished.Find out what was already done before the cancel landed.
Timed outNot a state at all. Your side stopped waiting.Ask before you act again. The work may still be happening.

Look at the last two rows, because they catch people.

Cancel is a request, not a switch. The specification says so: “The server will attempt to cancel the task, but success is not guaranteed.” The task might have finished a moment before the cancel arrived, or the agent might not be able to stop at that point. So after a cancel, read the task’s state again, and treat what comes back as the truth, not what you asked for.

Timed out is yours to define. A2A 1.0.1 has no “timed out” state. A call that waits for the answer waits until the task finishes or needs something from you. A call that doesn’t wait leaves it to you: “It is the caller’s responsibility to poll for updates.” So the deadline is a design decision on your side, sized to who is waiting, exactly as in chapter 14. And when your deadline passes, the other agent may still be working. That’s the unknown answer from chapter 15: ask what happened before you send the work again, with the same message ID, because the standard only says an agent “may” use it to spot a duplicate.

Rejected is the honest one. An agent that says no is doing you a favour. It’s a colleague telling you “that’s not my job,” which is better than a colleague who takes the work and does it badly. Design for it: rejected work goes to the next place, not back into the same queue.

Module 2 asked who talks to the customer when the work is going well. Ask it again for when it isn’t.

My answer: whichever agent the customer started with tells them. Even if a specialist was answering directly, the failure goes back to the front door, and the front door says what happened and what happens next, in plain words. “I couldn’t get your claim checked right now. A person on our claims team will pick it up today, and you don’t need to explain it again.” Not a technical error, and not silence while a task sits in a queue.

That last part, “you don’t need to explain it again,” is a design requirement, not a nice phrase. It means the context travels with the failure.

Salesforce’s reliability guide for agents describes the design I’d use: “a multi-tier fallback chain that degrades gracefully—from sophisticated agents, to simpler agents with reduced context, to deterministic rule engines, and finally to human handoff via Omni-Channel” (Reliability for the Agentic Enterprise (opens in a new tab), Salesforce Architects, checked 2026-11-21).

Read that as an integration architect and you’ll recognise it. It’s the retry plan from chapter 14, with a new first step. The specialist agent failed or said no? Try a simpler path. Rules can handle the common case? Use the rules. Nothing worked? A person.

Two lines in the same guide are worth putting on the wall:

  • The handoff carries everything. “Pass full conversation context—including attempted strategies, any confidence scores you compute for the agent, and failure reasons—to enable efficient human intervention.” The person should see what the customer asked, which agents tried, and why each one stopped.
  • Escalation is not a failure. “Count a graceful handoff to a human as a success, not a failure—escalation is the final fallback tier by design.” If you measure your agents by how rarely they hand over, you’ll build agents that hang on to work they shouldn’t.

Inside one org, Salesforce lets any agent in a multi-agent journey escalate to a person (module 2). So design that handoff once, for the whole journey. Across vendors, the escalation is yours to build: the outside agent’s failure comes back to your front door, and your front door hands it to your people.

Chapter 15 taught the hard truth: across systems, there’s no shared undo. That doesn’t change when the systems are agents. It gets harder.

Here’s a made-up example. A customer service agent asks a travel partner’s agent to rebook a flight, then asks a hotel’s agent to move the room. The hotel agent fails. The flight is already changed. Nothing in A2A reaches into the partner’s system and takes it back. Your side can only ask, with a new task, “please change the flight back,” and that agent can reject it, or fail too.

So the saga rules from chapter 15 apply, unchanged:

  • Every step that can be taken back gets its undo, named and ready before you need it (chapter 15 module 5).
  • The steps you can’t take back go last, after everything else has worked (Some Steps Can’t Be Undone).
  • The undo can fail too, so a failed undo goes to a person, with the systems’ disagreement written down (The Undo Can Fail Too).

And one rule gets sharper with agents. An action you can’t undo, a payment, a message to a customer, a truck that leaves, is exactly where I said at Dreamforce to require human oversight (chapter 22 module 1). If the step can’t be undone, and an agent you don’t run is deciding when to take it, put a person or a deterministic check in front of it. Chapter 15 module 8 gives you the choice: the agent as the conductor, or as a step inside a conductor you designed.

When the customer complains a week later, someone has to rebuild what happened. With one agent that’s hard enough. With three agents from two vendors, it’s impossible unless you planned for it.

Inside Agentforce, Salesforce’s observability now follows the handoff: “For teams running multi-agent workflows, a waterfall trace maps execution across the full chain. If an agent delegates to a subagent, the trace follows it” (Your Agents Are Getting More Capable. Is Your Observability Tooling Keeping Up? (opens in a new tab), Salesforce, 2026-07-21, checked 2026-11-21). The reliability guide adds the honest part: Agentforce Observability gives you session traces and health metrics, “but you’ll still need to instrument reliability metrics like MTBF, MTTR, and grounding accuracy yourself.”

Across vendors, you carry the trace yourself. The A2A specification lists tracing among its goals, but I found no trace header in the 1.0.1 specification. What it gives you is a context ID that “logically groups multiple related” tasks and messages, and a way to point at earlier tasks. Your own log does the rest:

  • A correlation ID created where the customer’s request started, sent on every hop, logged on every side (chapter 14 module 2).
  • Both task IDs, yours and theirs, on the same log line, so one search finds both ends.
  • The terminal state and the reason, for every delegated task, not only the failures.

That’s What Happened Across Every System? from chapter 14, with agents on the arrows.

The Identity course teaches who answers for a single agent: which agent it was, what configuration it ran, which user gave it its permissions, and which named person owns it (Someone Is Always Accountable). Every agent in the chain needs that, yours and every vendor’s.

But a chain of agents adds a question a single agent doesn’t have: when the work crossed three agents, who owns the outcome for the customer?

My position, from the same Dreamforce talk: AI produces outputs; you own outcomes. The person who owns the front door owns the outcome. Each agent’s owner answers for their agent’s part, and an outside vendor answers to you under your agreement with them. But the customer only sees your company, so the owner of the agent the customer started with answers to the customer, whichever agent dropped the work. Write that name down before go-live, beside the arrow.

Take one arrow where your agent hands work to another agent: the outside agent whose card you read in module 3, or a subagent in your own org. Write its one-page runbook, the way chapter 14 taught, with these lines added:

  1. The deadline. How long your side waits before it stops waiting, and why that number, given who is waiting.
  2. The four endings. For failed, rejected, cancelled and timed out: what your side does next for each one.
  3. What the customer is told, in one sentence, by which agent.
  4. The fallback chain. Each step down, ending with the queue a person works from, and what that person sees.
  5. The undo. For each action the other agent can take: its undo, or “can’t be undone, so a person approves it first.”
  6. The trace. Where the correlation ID starts, and where to search for both task IDs.
  7. The names. The owner of each agent, and the one person who owns the outcome for the customer.

If you can’t fill in a line, you’ve found the part of the design that isn’t finished yet.

Beyond the exam. The Integration Architect exam’s objectives don’t name agents or A2A. What carries over is everything the exam asks of a failed integration: a timeout and a retry plan, error handling that tells a temporary failure from a permanent one, compensation where there’s no rollback, monitoring with a correlation ID, and an owner for every arrow.

This chapter started with a choice, a tool or a colleague, and ends with what happens when the colleague lets you down. In between: start inside one org, cross vendors only when it’s real, read the card like a contract, and plan every ending before you hand the work over.

None of it was new, if you’ve taken this course. Contracts, versions, identity at each hop, timeouts, retries, sagas, traces and owners. Agents didn’t replace any of it. They made every one of them matter more. Chapter 24, the capstone, puts all of it to work: one design for a whole landscape, reviewed and defended.

  • The deadline for every delegated task, and what your side does when it passes.
  • What happens on each ending: failed, rejected, cancelled, timed out.
  • Which agent tells the customer, and what it says.
  • The fallback chain, step by step, ending with a person who sees the whole story.
  • The undo for every action an agent can take, or the person who approves it first.
  • The correlation ID that ties every hop together, on both sides.
  • The one person who owns the outcome for the customer, written down before go-live.