Long-Running Agents Drift Off Course. Steerability Keeps Them on Track
An agent that runs for five minutes is a demo. An agent that runs for five hours is a system. The difference is drift. The agent forgets the goal, chases a tangent, or gets nudged off course by its own memory. The longer it runs, the further it wanders.
Memory is the attack surface. DrunkAgent, a study of LLM-powered recommender agents, showed how this works. These agents use memory to explore, learn, and self-evolve from real-world interactions. That memory is a contextual repository, and it is also an opening for adversarial manipulation. DrunkAgent crafts semantically meaningful textual triggers that promote a target item, then corrupts the memory updates during interaction so the trigger sticks. The triggers are optimised on a surrogate model, which makes the attack transferable and stealthy, and it works black-box against commercial recommenders. The memory that makes the agent personal is also the memory that can be poisoned.
The same problem shows up without any attacker. An agent that writes everything it sees into memory will eventually fill that memory with noise, outdated facts, and its own mistakes. Then it starts acting on the noise. Long-running agents do not fail dramatically. They fail by slowly forgetting what they were supposed to do.
Steerability is the answer. It means the ability to keep an agent pointed at its goal over a long run. Four mechanisms do most of the work. First, explicit goals written down and re-checked, not buried in a system prompt the agent forgets. Second, feedback loops that compare progress against the goal at regular intervals. Third, guardrails that block actions outside the allowed set before they run. Fourth, memory hygiene: validating what gets written to memory before it sticks, and expiring what is stale.
Memory hygiene deserves a closer look, because it is where most long-running agents quietly break. A good memory policy has three rules. Store only what the agent will need later, not everything it sees. Validate each write against the goal before it sticks, so a poisoned or mistaken observation cannot become a permanent belief. Expire entries that are old or contradicted, so the agent does not act on stale facts. Without these rules, memory is a junk drawer. With them, it is the agent's long-term knowledge.
Guardrails are the other half. A steerable agent needs a clear list of what it may do and what it may not. That list is enforced before the action runs, not after. The agent can browse, but not buy. It can draft, but not send. It can read the calendar, but not delete entries. The guardrail is not a suggestion in the prompt. It is a check in code, outside the model, where the model cannot talk its way past it.
The recommender side of this story has an open toolkit. DeepRec, from the Data Dynamics Lab at UNSW, is an open-source toolkit for deep learning based recommendation, and it is the kind of system these agents are built on top of. A recommender is the canonical long-running agent: it runs continuously, updates its memory from every interaction, and drifts the moment that memory is poisoned. The agent layer adds memory and autonomy to the recommender. The steerability layer keeps both honest.
My read is that steerability is the missing layer in most agent stacks. Everyone builds the model, the tools, and the memory. Few build the loop that checks whether the agent is still doing what it was asked to do. That loop is not glamorous, but it is the difference between an agent you can leave running overnight and one you have to watch.
Try this
Build the steerability loop yourself. The pattern is a goal in the system prompt plus a self-check before acting. You need an OPENAI_API_KEY.
pythonimport os from openai import OpenAI client = OpenAI(api_key=os.environ['OPENAI_API_KEY']) goal = 'Summarise this paragraph in one sentence.' text = 'Long-running agents drift. They forget the goal, chase tangents, and act on stale memory. Steerability is the loop that checks progress against the goal.' resp = client.chat.completions.create( model='gpt-4o-mini', messages=[ {'role': 'system', 'content': f'Your goal is: {goal}. After drafting, check your answer against the goal and fix it if it does not match.'}, {'role': 'user', 'content': text}, ], ) print(resp.choices[0].message.content)
Then look at the recommender toolkit these agents sit on.
bashgit clone https://github.com/cheungdaven/DeepRec
