DEV Community

Cover image for Why “The Agent Did Exactly What I Asked” Is Not Good Enough
Maggie Zhou | AI SaaS Maker
Maggie Zhou | AI SaaS Maker

Posted on

Why “The Agent Did Exactly What I Asked” Is Not Good Enough

“It did exactly what I asked.”

That sentence sounds like a defense of an AI agent. In production, it can be the beginning of an incident review.

The agent may have followed the request precisely. The problem is that the request described one action, while the system contained twenty relationships around it. The agent completed the visible task and missed the invisible consequences.

This is the difference between task success and system safety.

A request has a boundary. A system has a neighborhood.
When someone asks an agent to rename a field, remove old files, update documentation, or generate a set of assets, the instruction usually points at a small target.

The target may be connected to:

a script that expects the old name;
a dashboard that reads the old metadata;
a publishing process that scans a specific folder;
a reviewer who relies on the original structure;
a legal or licensing decision that was never written down.
An agent can complete the target operation without understanding the neighborhood around it.

That does not make the agent careless. It means the task boundary and the system boundary are different things.

Why better prompts are not enough
The usual response is to add more words to the prompt:

Check everything carefully. Do not break anything. Think about edge cases.

This may improve the result, but it still leaves the most important decisions undefined. What counts as “everything”? Which edge cases matter? What is the agent allowed to do when it finds uncertainty?

A safer instruction is operational:

Inspect the requested area and its immediate dependencies.
List the files, records, or assets that would change.
Describe likely downstream effects.
Prepare a reversible proposal.
Stop before deletion, publication, or shared-resource changes.
The goal is not to make the agent sound more cautious. It is to give caution a measurable checkpoint.

Treat permission as a risk budget
Not every action deserves the same level of autonomy.

Reading a folder is different from deleting a folder. Drafting a migration is different from running it. Producing a preview is different from publishing it to a shared channel.

One practical approach is to give each task a risk budget:

Low risk: inspect, summarize, classify, draft.
Medium risk: create new files, edit isolated content, produce a patch.
High risk: delete, publish, overwrite, change permissions, or modify shared configuration.
An agent can often handle low-risk work without interruption. Medium-risk work should produce a reviewable artifact. High-risk work should require explicit approval.

This works better than assigning a vague label such as “autonomous” because it ties autonomy to the side effects of the action.

Reversibility is part of the design
A reliable workflow does not assume the first result will be perfect. It makes the first result cheap to inspect and easy to undo.

That means:

create a new version instead of overwriting the only copy;
generate a diff instead of silently rewriting a large surface;
save a preview before sending anything externally;
keep a record of the inputs and assumptions;
separate discovery from execution.
Reversibility lowers the cost of experimentation. It also makes human review more realistic, because reviewers can focus on the proposed change instead of reconstructing what happened afterward.

Creative tools show the same pattern
The blast radius problem is not limited to software repositories. It appears whenever an automated transformation can influence a larger creative decision.

For example, an editor may need to identify the tonal center of a track before choosing a transition or matching background music. A song key detector online can answer that narrow question quickly. It does not decide whether the transition works, whether the music fits the scene, or whether the final edit feels right.

A producer may also want a vocal-free reference while testing an arrangement. An ai vocal remover online free workflow can be useful for exploration, rehearsal, or a first draft. It should not be treated as an automatic replacement for listening, cleanup, rights review, or final approval.

The pattern is consistent:

Automation can reduce the cost of a step without becoming the authority over the whole result.

Ask the agent to report what it did not inspect
Most agent summaries focus on completed actions:

updated the files;
generated the output;
removed the duplicates;
applied the new format.
That is only half the report.

For consequential work, ask for a “not inspected” section:

Which related systems were not checked?
Which assumptions were necessary?
Which files were intentionally left unchanged?
Which outputs still need human review?
What would make the proposed action unsafe?
This creates a useful separation between confidence and completeness. An agent may be confident that it performed a transformation correctly while still being unable to claim that the surrounding system is unaffected.

A small review protocol for agent work
Before execution:

Define the intended result in one sentence.
Define the forbidden side effects.
Identify the recovery artifact: diff, copy, snapshot, or draft.
Set the approval checkpoint.
After the agent responds:

Compare the proposed scope with the requested scope.
Read the assumptions, not only the conclusion.
Check whether the recovery artifact exists.
Review the highest-impact change first.
Approve only the operation that was actually inspected.
This protocol is intentionally modest. It does not require a perfect map of the entire system. It creates a pause at the point where a local action could become a global consequence.

The real goal is informed delegation
The choice is not between fully manual work and unrestricted autonomy.

There is a more useful middle ground: informed delegation.

The agent handles repetition, exploration, formatting, transformation, and first drafts. The human defines boundaries, evaluates ambiguity, approves side effects, and owns the final decision.

That division works because each side is doing the kind of work it can inspect best.

So when an agent did exactly what you asked and something still went wrong, the lesson is not necessarily “agents cannot be trusted.” A better lesson is that the request described an action, but the workflow failed to describe its blast radius.

The fix is to make the neighborhood visible, keep the change reversible, and require evidence before authority.

Top comments (0)