- Draw the four states for each read step.
- Trace timeout and stale-response events without inventing note content.
- Generate a final comparison using only recorded observations.
An agent often describes what it intends to do before calling a tool. If that description is later treated as a completed action, the final answer can contain invented evidence. Model planning and observation as separate states in a small local trace.
Give planned work its own state
The fixture plan is to read N1, compare its date with N2 and write a summary. Before the read call returns, N1 is not yet observed. Keep planned, running, observed and failed states distinct. A sentence such as I will check the note is not a note receipt. Ask the assistant to show which claims are supported by actual observations and which are predictions about a proposed step.
Commit only actual observations
The tool returns timeout for N1 and a valid date for N2. The agent must not fill N1 from its earlier expectation or from a similarly named note. Record the failure category and decide whether a bounded retry or an unresolved-field handoff is appropriate. If an asynchronous result belongs to an older task revision, do not attach it to the current plan silently. Preserve the source and request identity with the observation.
Build the final answer from the ledger
A final comparison should cite the N2 date and mark N1 unresolved. The report can describe a possible next action without claiming it already occurred. Test a success, a timeout and a stale response in a deterministic trace. This makes hallucinated completion easier to detect because every factual field must map to a recorded observation. It remains a teaching trace, not proof of behavior for every live provider or tool.
Fictional worked example — Plan versus receipt
Supplied input
Plan: read N1; observation: timeout; N2 date=Friday
Example result to inspect
N1 date=unresolved; N2 date=Friday [N2]
A planned read cannot supply the missing date after the actual tool result is a timeout.
This is an authored teaching example, not a recorded live provider run or an independent performance test.
Make the idea concrete.
- Draw the four states for each read step.
- Trace timeout and stale-response events without inventing note content.
- Generate a final comparison using only recorded observations.
What a useful outcome looks like
Plans describe intended work; observations provide the evidence for factual claims.
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: Update agent state from observed results, not predicted outcomes. I will supply the original input, my expected result and the actual transformation. Explain actual observation, identify unsupported assumptions about stale task identity, 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.