- Define what would count as new evidence in the fixture.
- Write step and elapsed-time budgets with retry counting.
- Create a stopped handoff containing partial evidence and a next decision.
An agent can repeat the same search or tool request without gaining evidence. A bounded loop needs a step budget, a reason to continue and a useful stop state. Use a fictional note-finding task to decide when another action is justified.
Define progress in terms of new evidence
The agent needs one missing date from the approved collection. After two identical searches return the same notes, repeating the query unchanged has no stated reason to help. Record what new evidence each step is expected to obtain. A longer chain of thoughts or a new wording of the same unsupported conclusion is not progress. Ask the agent to identify the information gap before proposing another tool action.
Bound work at the application layer
Set maximum tool calls, elapsed time and permitted resource use for the exercise. A prompt instruction to stop after five steps is helpful but should not be the only enforcement. Count failed calls and retries according to a documented rule. Distinguish local cancellation from confirmed remote cancellation, because a provider may continue processing. Do not claim that stopping the UI necessarily prevents every remote charge or computation.
Return a useful stopped result
When the budget ends, show the evidence already obtained, the unresolved field and one owner-reviewable next option. Do not fabricate the missing answer to make the run look successful. Test a no-progress repetition, a legitimate new source and a budget-exhausted trace. The result should make the stopping reason understandable and preserve useful partial work without implying that the whole task was completed.
Fictional worked example — Bounded search
Supplied input
Budget=3 calls; calls1 and2 return N1 without a date; call3 reaches the budget limit
Example result to inspect
Stop with the date unresolved and source coverage recorded
The loop must not invent a date or continue indefinitely after exhausting its authorized budget.
This is an authored teaching example, not a recorded live provider run or an independent performance test.
Make the idea concrete.
- Define what would count as new evidence in the fixture.
- Write step and elapsed-time budgets with retry counting.
- Create a stopped handoff containing partial evidence and a next decision.
What a useful outcome looks like
A useful stop state explains the remaining gap without fabricating completion.
Ask for reasoning you can verify.
Use fictional or permitted data. This is a copyable brief for a separate approved model; no model is called from this article.
Help me review this fictional designing bounded ai agents exercise: Stop repetitive work with an informative handoff rather than endless retries. I will supply the original input, my expected result and the actual transformation. Explain enforced budget, identify unsupported assumptions about partial-work handoff, and propose one bounded negative control. Keep observations separate from hypotheses; do not invent output or act on external systems.
Turn reading into a reviewed checkpoint.
Complete the manual exercise, review each item, then answer the evidence question. This records self-study, not independent assessment of expertise.
Review the checklist and pass the question to save this lesson.
Primary references
References support further checking; cited organizations do not endorse AgentX. This guide is original AI-assisted educational content with illustrative examples. Read the editorial policy or report a correction.
Continue with a related task.
Give an agent a bounded completion condition
Define success as observable work rather than an open-ended instruction to help.
Treat tool calls as typed proposals
Validate requested actions before a tool can execute them.
Keep retrieved instructions below user authority
Separate instructions that govern the agent from text it is analyzing.