The Jekyll-and-Hyde Problem in Large Language Models: Why Long-Horizon Tasks Remain Unstable
Modern large language models often excel at short, well-defined tasks but become unreliable during long-running, autonomous workflows. This article examines why single-step reasoning strength doesn't translate into long-horizon planning ability, breaks down the root causes—undefined completion criteria, context decay, and missing error recovery—and outlines evaluation metrics and engineering patterns (explicit goal definition, externalized state, plan-execute-verify loops, and tiered escalation) that compensate for these gaps at the system level.
I. The Phenomenon: Why the Same Model Can Dazzle or Fail
In practical evaluations, the latest generation of large language models shows a clear split in capability. On one hand, these models have matured significantly in document and slide generation, with noticeable progress in visual output such as 3D modeling and web page generation. Desktop automation tasks—reading interfaces, clicking, filling out forms—are handled with reasonable reliability. Backend tasks with structured, deterministic workflows are executed rigorously. Token costs per call also continue to decline.
On the other hand, once a task becomes long-running and requires autonomous decision-making, these models tend to destabilize. Two failure patterns show up repeatedly:
- No clear sense of task completion: The model runs for an extended period but can’t clearly state whether the task is done, where the output was saved, or whether the result meets the required standard.
- Escalating instead of resolving: When the model hits an intermediate obstacle it should be able to handle on its own, it defers the decision back to the user instead of attempting a fix.
This split—brilliant on short tasks, shaky on long ones—isn’t a sign that the model has “gotten worse.” It reflects the fact that single-step capability and long-horizon autonomy sit on two different difficulty curves.
II. Root Causes
1. Strong Single-Step Reasoning Doesn’t Imply Strong Long-Horizon Planning
Large language models are trained to produce a high-quality next step given the current context. The stronger this single-step capability, the more impressive the model looks on short tasks. But long tasks require maintaining goals across many steps, tracking state, and self-verifying progress—which means the model has to continuously keep track of what it’s trying to achieve, how far it has gotten, and what’s still missing. As the number of steps grows, errors accumulate and the original goal drifts.
2. No Explicit Definition of “Done”
Humans typically carry an internal “Definition of Done” when working on a task. If a model isn’t given explicit completion criteria, it has to rely on linguistic intuition to judge whether a task is finished. This produces two failure modes: finishing the work without confirming completion, or stopping before the work is actually done.
3. Context and Memory Decay
Long-running tasks generate large volumes of intermediate information—file paths, variables, decisions already made. Once this information exceeds the model’s effective context window, or isn’t stored in a structured way, the model “forgets” critical state and has no choice but to ask the user. This is one of the root causes behind models pushing problems back to users.
4. Lack of Error Recovery Mechanisms
Short tasks rarely trigger failure branches. Long tasks almost always encounter some kind of failure path. Without retry, rollback, or degradation strategies in place, a model that hits an obstacle can only stall or ask for help.
III. How to Evaluate: Don’t Rely Only on Aggregate Benchmarks
Metrics like overall intelligence scores or per-task cost reflect average performance, but they don’t expose the fragility of long-horizon tasks. Consider adding the following evaluation dimensions:
- Task completion rate vs. number of steps: Track how completion rate decays as step count increases. A steeper decay curve indicates weaker long-horizon capability.
- Self-termination accuracy: Of the cases where the model declares a task “complete,” how many actually meet the required standard.
- Escalation rate: How often the model pushes problems back to the user in situations it could have resolved on its own.
- State consistency: Whether the model can correctly answer questions mid-task about current progress and the location of produced artifacts.
- Cost per valid output: Not the per-token price, but the total cost of completing one task to an acceptable standard.
IV. Engineering Solutions: Moving Autonomy from the Model to the System
Rather than waiting for the model itself to improve, system architecture can compensate for these gaps. The core approach is to make goals explicit, externalize memory, and structure the workflow.
1. Explicitly Declare Task Completion Criteria
Define acceptance criteria clearly in the prompt or task definition, and have the model self-check against them at the end of the task:
task = {"goal": "Generate level configuration and produce a runnable build","done_when": ["Configuration file passes validation","Build artifacts have been written to the specified directory","Self-check report contains no blocking errors"],"artifact_dir": "/workspace/output" # Fixed artifact location to avoid ambiguity about where output is stored}
2. Externalize State and Memory
Don’t rely on the model to “remember” intermediate information. Write progress, decisions, and artifact paths to an external state store (a general-purpose object store, logging service, or key-value store can serve this role). Each step should read state before executing:
state = store.load(task_id) # Load current progressstep = plan.next_step(state) # Decide the next stepresult = agent.run(step, context=state)store.save(task_id, state.update(result)) # Write back to create a recoverable checkpoint
This way, even if execution is interrupted, the task can resume from the last checkpoint instead of requiring the model to ask the user for guidance.
3. Plan-Execute-Verify Loop
Break long tasks into a “plan → execute → verify” cycle, with validation and error handling built into every step:
while not task.is_done(state):step = planner.plan(state)try:out = executor.run(step)if not verifier.check(out, step.criteria):state = recover(state, step) # Roll back or retry instead of escalating directlyelse:state = state.commit(out)except StepError:state = retry_with_backoff(state, step)
4. Tiered Escalation Strategy
Set clear thresholds for when to escalate. Issues that can be resolved through automatic retry should be handled automatically. Only cases that genuinely require human judgment—permission changes, irreversible actions, ambiguous goals—should be escalated to the user, along with current progress and available options. This avoids pushing even simple problems onto the user.
5. Observability
Connect long-running tasks to monitoring, alerting, and logging services that record the duration of each step, retry counts, and artifact locations. Execution should be transparent to the user, so questions like “is this done” and “where is the output” can be answered at any time.
V. Recommendations for Implementation Teams
- Match capability to task type: Structured, deterministic backend and desktop automation tasks can be delegated to model autonomy to a greater extent. Open-ended, long-horizon creative tasks require the system to manage state and verification.
- Decide based on a cost model, not a unit price: Focus on the total cost of completing one task to an acceptable standard. Retries and rework on long tasks are the real source of cost.
- Expand autonomy gradually: Validate self-checking and recovery mechanisms on small tasks first, then progressively widen the scope of autonomous operation.
At this stage, where model capabilities remain uneven, a reliable long-horizon agent doesn’t depend on how strong a single model is. It depends on whether the system has filled in the four gaps: goals, memory, verification, and recovery. Pushing autonomy down into the engineering layer is what allows a model that’s “brilliant one moment and unreliable the next” to deliver consistent results.
