Can an AI tell when its plan is going wrong?
A plan is only useful while the world keeps matching its assumptions. What should an agent do when reality disagrees?
An AI agent often works through a loop: make a plan, take an action, observe what happened, and decide what to do next. The observation is feedback. If the result differs from the prediction, the agent should update its picture of the situation rather than blindly continue with the original plan. This is a basic form of closed-loop control and adaptive planning.
Real environments are uncertain. A website may change, a tool may fail, a robot may meet an obstacle, or a user may provide new information. Open-loop behaviour executes a fixed sequence without checking what happened. Closed-loop behaviour uses feedback to adjust. That difference can turn a brittle demo into a system that recovers from ordinary surprises.
Ask an AI agent to complete a small multi-step task, such as finding a setting in a mock website. Before each step, ask it to predict what it expects to see. After the action, compare the actual result with that prediction. Introduce one harmless change—move a button or make a page load differently—and observe whether the agent notices, updates its plan and explains the next step.
Feedback is not automatically reliable. The agent may misread the result, overreact to noisy observations, or keep retrying an action that cannot succeed. Replanning also has a cost. A robust system needs limits on retries, clear success conditions, safe fallback behaviour and a way to ask a human when uncertainty remains high.
A capable agent does not just follow a plan; it checks reality and changes course when the evidence says it should.
A website button moved, so the agent’s click missed. What should it do?
A. Repeat the same click again and again
B. Inspect the new page state and re-plan
Answer: B. It should observe the changed interface, locate the control again and choose a new safe action.