Task state guidance influences large language model agent reliability

How Strongly Should Task State Influence an LLM Agent?

Artificial IntelligenceComputation and LanguageMachine Learning

Summary

When large language model (LLM) agents work on tasks with many steps, they need to keep track of which steps are done, blocked, or still open. This paper studies how showing the task state in different ways affects the agent's success. The authors found that just showing accurate state information is often unreliable, while having the agent keep its own record can work better than showing a checklist. Strong enforcement of rules helps when mistakes are common and clear, but can hurt when the enforcement system makes errors. The findings vary with the model size, the task domain, and whether the agent reasons on every step.

What this means in practice

  • For software developers: Design LLM agents with appropriate task state handling methods to improve reliability depending on task complexity and model size.
  • For customer support teams: Integrate enforcement modules for task state management to reduce policy violations in automated response systems.

Authors

Chenyu Zhang, Wonbin Kweon, Jiawei Han

Abstract

Long-horizon assigned work requires an LLM agent to track the state of a task: which steps are done, blocked, cancelled, or open to repetition. Agent systems either keep this state as text in the prompt and rely on the model to read that text, or move the state into a module that enforces it, and each system is evaluated as a whole, so no one knows how much reliability comes from the state being shown, told, or enforced. We fix the task rules, the model, and paired episodes and vary how strongly task state reaches the agent: a raw transcript, an exact checklist, per-turn directives from a state machine compiled from the brief and advanced only by execution receipts, or an enforcement gate on that machine that refuses state-violating actions; every episode is scored by exact payload matching against dynamic ground truth. Across three models, two reasoning regimes, and two domains, four findings hold without per-turn reasoning: displaying accurate state is unreliable, an unverified ledger the agent writes itself beats an accurate checklist it is shown, directives help in proportion to the model's obedience, and enforcement needs no obedience but is bounded by the correctness of its state and by the matcher that maps requests to steps; per-turn reasoning at a 235B agent compresses these separations without repairing the text rungs. The same gate, compiled from $τ^2$-bench's airline policy, raises a 235B agent's pass$^1$ from 0.39 to 0.54 and changes nothing for a 35B agent that rarely violates the policy; on PM-Bench, where acting turns on recognizing a cue rather than on state, showing the record is the best rung--matching or beating both gates and reversing the ledger-over-checklist finding--and enforcing the matcher's judgement drops a 35B agent below its raw transcript. Enforcement pays when failures are state-decidable and frequent, and hurts when the gate's judgement is wrong.