Reflection and Critique
About 40 min
Goal
By the end of this lesson, you can apply a bounded critique step to evidence-sensitive judgments while keeping deterministic checks and policy enforcement outside the critique loop.
An agent can make a plausible decision for a bad reason. One way to catch some mistakes is to insert a critique step before an important action.
A critique is not a magical truth detector. It is another decision process. It can also be wrong. Its value comes from asking a narrower question with explicit evidence and criteria.
Critique the decision, not the agent's personality
Weak critique prompt:
“Think harder. Are you sure?”
Stronger critique task:
proposed action: refund_order(order_id=4172, amount=80)
check:
- is refund eligibility present in trusted state?
- is the principal permitted to request this tool?
- is exact approval present for order 4172 and amount 80?
- would this action exceed the remaining step budget?
return: pass or named issue
The stronger form turns critique into a check against inspectable conditions.
Keep deterministic checks deterministic
If the approval amount is wrong, application code can compare values exactly. Do not ask a language model to “reflect” on whether two dictionaries are equal.
Use critique for judgment-heavy questions such as whether the proposed action addresses the current subgoal or whether the evidence cited by the model actually supports its interpretation.
Then keep schema, permission, approval binding, counters, and legal transitions in deterministic code.
Critique should have a budget
A common failure mode is:
draft
→ critique
→ revise
→ critique
→ revise
→ critique
→ ...
The system appears careful but may never act or stop.
A bounded policy might allow one critique before a high-impact action and at most one revision. If the revised proposal still fails deterministic checks, stop or escalate.
The exact number depends on the task. The stable principle is that self-review needs the same kind of budget as the outer agent loop.