AI After the Demo — Part 12

Jeannine has a simple request.
“Prepare the weekly customer-risk report and send it to the regional managers.”
The AI agent gets to work.
- It retrieves the customer data.
- Checks recent sales activity.
- Reviews outstanding balances.
- Examines service complaints.
Everything is moving along nicely.
Then something unexpected happens.
The Customer Service system returns an error.
The agent retries.
Same error.
It tries again.
Still nothing.
Now the agent has a decision to make.
Stop the process and tell Jeannine?
Ask whether to continue without the service data?
Or finish the report using whatever information it already has?
The agent chooses option three.
And why wouldn’t it?
After all, its instructions say to prepare the report and send it to the regional managers. It has also been told to retry unavailable systems and use whatever information is available.
Sounds reasonable.
So it generates a beautiful report.
- Professional formatting.
- Executive summary.
- Risk classifications.
- Recommendations.
And sends it to twelve regional managers.
There’s just one problem.
The report doesn’t include Customer Service activity.
The agent knew the information was missing.
It even recorded the failed retrieval.
But it continued anyway.
And nobody receiving the report knew anything was wrong.
Welcome back to Production.
The Difference Between Failing and Failing Safely
We’ve spent decades teaching software how to handle errors.
Try again.
Log the failure.
Return an error code.
Roll back the transaction.
Notify someone.
Stop processing.
These aren’t glamorous features.
But they’re essential.
Now we’re building AI agents that can decide what to do next.
And that’s where things get interesting.
A traditional application might fail because a required service is unavailable.
An AI agent might recognize that the service is unavailable, reason that it can still produce something useful, and continue.
Sometimes that’s exactly what we want.
Other times, it’s a spectacularly bad idea.
The problem isn’t that the agent encountered an error.
The problem is that nobody defined what the agent was allowed to do when it encountered one.
And in this case, the agent didn’t necessarily ignore its instructions.
It followed them.
We just hadn’t given it the right ones.
Helpful Isn’t Always Appropriate
Let’s look at the agent’s decision.
It had sales data.
It had financial information.
It had historical customer activity.
It didn’t have current service complaints.
From the agent’s perspective, there was enough information to produce a report.
And technically, there was.
But was it enough to produce this report?
That’s a business decision.
Suppose a customer has maintained steady purchasing activity and pays every invoice on time.
Sales looks good.
Finance looks good.
But the customer has submitted six unresolved complaints in the past two weeks.
Without the service data, the customer looks perfectly healthy.
With it, the customer might be one of the most important accounts on the list.
The missing information doesn’t just make the report incomplete.
It changes what the report means.
And that’s why silently continuing is dangerous.
Complete According to Whom?
Here’s something that makes this problem particularly interesting.
Technically, much of the workflow succeeded.
The agent retrieved the available information.
It generated the report.
It sent the emails.
Every one of those actions completed successfully.
Let’s look at the results.
| Process | Status |
|---|---|
| Sales data retrieved | Complete |
| Finance data retrieved | Complete |
| Customer Service data retrieved | Failed |
| Report generated | Complete |
| Email delivered | Complete |
| Business process ready | No |
Now imagine the monitoring dashboard.
Five steps executed.
Four succeeded.
One failed.
And the final email was delivered successfully.
Depending on how the workflow was designed, someone might even see a big green COMPLETED status.
Fantastic!
Except the business process wasn’t actually complete.
A workflow can complete every step it executes and still fail the business process it was supposed to support.
We’ve all seen some variation of this in traditional data processing.
A job finishes successfully, but the data is incomplete.
A pipeline completes, but one of the source systems didn’t provide its expected records.
A report refreshes, but the underlying information isn’t ready.
AI didn’t invent this problem.
But an AI agent can make it considerably more interesting by deciding to continue on its own.
And then producing a polished explanation of why everything looks fine.
Not Every Missing Piece Is Equal
Now, I don’t want an AI agent to stop every time something minor goes wrong.
That would make for a fairly useless agent.
Imagine asking for a weekly report and having the entire process fail because the system couldn’t retrieve a customer’s secondary phone number.
That’s probably unnecessary.
But missing current customer complaints?
That might be critical.
So we need to distinguish between different types of failures.
Some information is optional.
Some information is important but not essential.
Some information is required for a trustworthy result.
And some failures should prevent the agent from taking any further action.
The AI shouldn’t be inventing these distinctions while processing Jeannine’s request.
Someone needs to define them before the failure happens.
Because “use whatever information is available” is not much of a business rule.
Especially when the missing information might completely change the answer.
Retry Is Not a Recovery Strategy
Here’s another favorite.
The agent encounters an error.
It retries.
Then retries again.
Then again.
Maybe it changes the request slightly.
Maybe it tries another tool.
Maybe it decides to work around the problem.
This can be useful.
But there need to be boundaries.
- How many retries are acceptable?
- How long should the agent wait?
- Can it use a secondary data source?
- What if the secondary source is older?
- What if it returns a different answer?
- And what happens if the action isn’t safe to repeat?
That last question is particularly important.
Retrieving customer information twice is usually harmless.
Creating the same purchase order twice?
Not so much.
An intelligent retry mechanism that creates duplicate transactions isn’t intelligent enough.
Retries need limits.
Actions need appropriate safeguards.
And recovery behavior needs to match the consequences of the operation.
Otherwise, we’ve just given our traditional integration problems a much more enthusiastic participant.
The Sherpa’s Notebook
At one of my previous clients, we had a team responsible for monitoring daily processing across multiple systems.
Every morning, someone had to be awake around 5 or 6 AM.
Not necessarily because something was broken.
Because someone had to update a spreadsheet.
They checked which processes had completed, which were still running, and which needed attention.
And they kept monitoring until everything was finished.
Every. Single. Morning. Yes, even weekends.
It wasn’t particularly glamorous work.
But that spreadsheet represented something important.
The person maintaining it understood that a green status in one system didn’t necessarily mean the business process was finished.
They knew which processes mattered.
Which ones depended on others.
Which failures were serious.
And when the business could actually consider the processing complete.
The spreadsheet wasn’t the intelligence. The person updating it was.
Now imagine replacing that person with an AI agent.
The agent can query the different systems.
It can update the spreadsheet.
It can calculate expected completion times.
It can notify the team when something is running late.
And when everything finishes, it can automatically distribute the completed report.
Wonderful!
Frankly, nobody should have to get up at 5 AM just to discover that everything ran normally.
But what happens when one of those systems fails?
Does the agent understand that a missing process makes the entire morning report incomplete?
Does it know which downstream processes cannot be considered ready?
Does it know when to notify someone?
Or does it happily send the spreadsheet because it successfully filled in every cell?
That’s where things get interesting.
The human monitoring the process wasn’t just recording statuses.
They were interpreting them.
They understood the dependencies and the business consequences.
And that knowledge doesn’t automatically transfer to an agent just because we give it access to the same systems.
We didn’t eliminate the need for operational knowledge. We changed where that knowledge has to live.
That might be in process metadata.
Dependency definitions.
Business rules.
Validation requirements.
Runbooks.
Orchestrated workflows.
And yes, some of it might be available to an AI agent for interpretation.
But it has to exist somewhere the architecture can actually use it.
Otherwise, we’ve automated the spreadsheet without automating the knowledge that made it useful.
The Difference Between a Draft and a Decision
Let’s return to Jeannine’s weekly report.
The Customer Service system is unavailable.
Should the agent stop?
Maybe not immediately.
Perhaps it can still produce a draft.
A clearly labeled draft.
Something like:
CUSTOMER-RISK REPORT — INCOMPLETE
Sales and financial data are current. Customer Service information could not be retrieved. Risk classifications may be understated.
Now that’s potentially useful.
Jeannine can review it.
She can decide whether to wait.
She can investigate the missing data.
She can request another attempt.
But sending that same incomplete report to twelve regional managers as though it were final?
That’s a different action.
And it deserves a different level of control.
Preparing an incomplete draft and distributing an authoritative report are not the same operation.
One can be helpful.
The other can spread a misleading conclusion throughout the organization.
The Point Where the Agent Must Stop
I think this is one of the most important design questions for enterprise agents:
When does the agent lose permission to continue autonomously?
Not when does the application crash.
Not when does the model return an error.
When does the business situation require a human decision?
Consider a few possibilities.
- The agent encounters conflicting customer records.
- It discovers that a required approval is missing.
- A source system returns stale information.
- A financial total doesn’t reconcile.
- An external service times out.
- The requested action exceeds an established limit.
The agent can recognize these situations.
It can gather additional evidence.
It can explain the problem.
But that doesn’t automatically mean it should decide how to resolve them.
I’d want four possible outcomes defined in the workflow.
| Outcome | When it makes sense |
|---|---|
| Retry | The failure is temporary, and repeating the operation is safe. |
| Continue with warning | The missing information is optional, and the limitations are clearly disclosed. |
| Pause for approval | Continuing requires an authorized business decision. |
| Stop | Mandatory data or validation is missing, and further action is prohibited. |
Those aren’t decisions the model should improvise while processing a request.
They should be part of the workflow design.
And the important boundaries should be enforced by the application or orchestration layer.
Not just buried in a prompt that says, “Please don’t do anything bad.”
Sometimes the correct next action is:
Stop. Explain. Ask.
And that’s not a failure of autonomy.
That’s autonomy operating within appropriate boundaries.
Don’t Confuse Escalation With Failure
There’s a temptation to judge agents by how often they complete tasks without human involvement.
The more autonomous, the better.
Right?
Not necessarily.
An agent that completes 100% of its tasks by quietly ignoring missing information may look impressive.
An agent that completes 92% and escalates the remaining 8% because the evidence is insufficient may be much more trustworthy.
Those numbers are purely illustrative, but the principle matters.
Escalation isn’t necessarily a defect.
It can be the expected outcome of a well-designed process.
We shouldn’t penalize an agent for recognizing when it needs help.
Otherwise, we’re rewarding exactly the behavior we should be trying to prevent.
An agent that knows when to stop may be more capable than one that always finishes.
What Does Jeannine Actually Need to Know?
Now suppose the agent decides to escalate.
What should it tell her?
Not this, “Tool execution failed. Error 503.”
That’s technically informative.
It’s also not particularly helpful to Jeannine.
She needs to know what happened in business terms.
For example:
“I couldn’t retrieve current Customer Service complaints. I can prepare a draft using sales and financial information, but the customer-risk classifications may be incomplete. Would you like me to save the draft or retry later?”
That’s a much better interaction.
It identifies the missing information.
It explains the consequence, offers appropriate next steps, and leaves the decision with the person authorized to make it.
The agent isn’t pretending everything is fine.
It also isn’t dumping a technical exception onto the user and walking away.
It’s helping manage the failure.
And there’s another benefit.
If the agent understands the dependencies, it can explain the downstream impact.
Not just “Customer Service failed.”
But:
“Customer Service data is unavailable. This affects the customer-risk report and two downstream reporting processes. Those reports cannot be considered complete until the required data is available and validated.”
That’s useful operational intelligence.
And it’s considerably better than asking someone to log into six different systems to figure out what happened.
The Danger of a Plausible Result
Here’s why this matters so much with AI.
When traditional software fails, we often get something obvious.
An error message.
A missing file.
A failed job.
A blank report.
Not always, of course. We’ve all encountered silent failures.
But generative AI has an additional talent.
It can produce something that looks finished.
Even when important evidence is missing.
The writing can be polished.
The formatting can be professional.
The recommendations can sound convincing.
And the reader may have no idea that a critical source failed halfway through the process.
A polished answer can make an incomplete process harder to recognize.
That’s a particularly unpleasant combination.
Especially when the result is automatically distributed to people who assume someone—or something—has already checked it.
Build Failure Decisions Into the Workflow
So how do we avoid this?
Definitely not by telling the agent, “Please be careful.”
And not by hoping the model will make the right decision every time.
We need to design the workflow.
Identify which data sources are required for each task.
Define acceptable fallback sources.
Establish retry limits.
Determine which actions are safe to repeat.
Specify when incomplete results may be saved as drafts.
Define which failures require escalation.
And prevent final publication or external actions when mandatory conditions haven’t been met.
Some of those controls belong in application logic.
Some belong in workflow orchestration.
Some belong in business rules.
Some may be communicated to the model.
But the critical boundaries shouldn’t depend solely on the model deciding to obey a sentence in a prompt.
Think about that 5 AM spreadsheet.
If we automate the monitoring, the process definitions and dependencies need to be captured somewhere.
Not just the job names and execution times.
We need to know what complete means.
Because the agent can tell us that every monitored job has finished.
But unless we’ve defined the business completion criteria, it can’t reliably tell us whether the business is ready.
The agent can help determine the next step. The architecture needs to enforce what steps are allowed.
And What Happens After the Failure?
There’s another part we shouldn’t forget.
Suppose the agent stops appropriately.
It notifies Jeannine.
She decides to retry later.
The Customer Service system comes back online.
What happens next?
Does the entire workflow restart?
Does it reuse the information gathered earlier?
Is that information still current?
Does it rerun the risk calculations?
Does it accidentally send the report twice?
Does it preserve the original request and the reason it stopped?
A production workflow needs a recovery path.
Not just an error message.
Otherwise, we’ve built a system that knows how to stop but doesn’t know how to resume safely.
That’s progress.
Just not enough progress.
And in a multi-system environment, recovery becomes even more important.
One system might have completed hours ago.
Another might have failed.
A third might be waiting on the failed process.
Restarting everything isn’t necessarily appropriate.
But neither is blindly resuming from the point of failure without validating what happened in between.
The recovery path needs to understand the dependencies just as well as the original execution path.
The Sherpa’s Lesson
AI agents are going to encounter failures.
Unavailable systems.
Missing data.
Conflicting information.
Unexpected responses.
Partial results.
That’s normal.
The question is what happens next.
For years, organizations have depended on people who know when the numbers don’t look right.
People who recognize that a process finishing doesn’t mean the data is ready.
People who understand that one missing source can invalidate an otherwise beautiful report.
We’re now building agents to take over some of that work.
That’s awesome.
Nobody should have to wake up at 5 AM just to find out that everything ran normally.
But if we’re going to automate the work, we also need to capture the judgment that made the work reliable.
The dependencies.
The business rules.
The validation requirements.
The conditions under which the process can continue.
And the conditions under which it absolutely cannot.
Sometimes the agent should retry.
Sometimes it should use an approved fallback.
Sometimes it should prepare an incomplete draft.
Sometimes it should ask for help.
And sometimes it needs to stop entirely.
Those decisions shouldn’t be improvised during an incident.
They should be part of the architecture.
Otherwise, we haven’t just replaced the person monitoring the process. We’ve removed the person who knew when to stop it.
Because the most dangerous failure isn’t always an agent that crashes.
Sometimes it’s an agent that encounters a serious problem, confidently works around it, and delivers a beautiful result.
Your AI knew something was wrong. It kept going anyway.
And now, twelve regional managers are making decisions from a report that should never have been sent.
Leave a Reply
You must be logged in to post a comment.