Failure modes of a partially observed language agent

← Back to Blog & Articles

Observations are untrusted. Everything the tools return is data. A retrieved document can contain text that looks like an instruction. An agent that treats observations as commands can be steered by anyone who writes into a document it might retrieve. The environment must label observations as such, and training should include cases where an observation contains instructions the policy should not follow.

Observations are untrusted. Everything the tools return is data. A retrieved document can contain text that looks like an instruction. An agent that treats observations as commands can be steered by anyone who writes into a document it might retrieve. The environment must label observations as such, and training should include cases where an observation contains instructions the policy should not follow.

Accepted but wrong calls. A call that passes validation and produces the wrong effect, as an empty-string answer, is invisible to the loop. Semantic constraints (non-empty answers, in-range values) should be checked and made part of the reward.

Errors in the context. Error messages and failed attempts remain in the history and can crowd out or confuse later reasoning. Whether to keep them is a design choice; the companion book example’s policy retries once, which doubles the tokens for that call.

Unbounded loops. Without a step budget the agent can call the same tool forever. Budgets turn this into a bounded cost, and the policy must learn that the budget exists, either through the context or through the reward.

Memory staleness. A memory store can hold outdated facts if the world changes. A key-value tool is correct only if the agent writes what it needs and overwrites what has changed.

Re-reading cost. Quadratic context cost makes long trajectories expensive to roll out and to train on unless prefix computation is reused.

Continue with the book

Explore the full treatment, worked examples, and exercises in RL for LLM Agents and Reasoning Models.


Companion article for RL for LLM Agents and Reasoning Models, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.

Scroll to Top