# LLM Ignores Prompt Instructions to Keep the Conversation Short

By Rokas Remeika. Published 27 November 2026.

A realtime model has no internal clock, so elapsed time is not in its context window. Pacing instructions in the system prompt compete with other rules and decay as the conversation grows, leaving the call to hit a hard transport limit. You fix this by keeping the pacing policy out of the prompt entirely. Instead, run a supervisor watchdog alongside the session that observes the clock, computes the remaining budget, and injects a closing instruction at a turn boundary when it is time to wrap up.

## Symptoms

- A conversation that is supposed to be bounded has nothing enforcing the bound. The agent will happily continue talking to the caller indefinitely.
- Instructions in the system prompt like "keep this under ten minutes" hold for the first few turns and then stop mattering entirely.
- The end of a long call is dictated by whichever hard cap fires first. You see sessions terminating because of a transport limit or a provider limit, rather than the conversation finishing gracefully.
- The misleading observation is that the model understands time early in the call. If you test a short interaction, the agent might mention time constraints, tricking you into thinking you just need to word the prompt more strongly to make it hold up in production.

## What is actually happening

Nothing in a realtime session tells the model how much of its budget it has used. The model receives an append-only log of text and function calls. It has no internal ticker, and it does not know if a user turn took two seconds or twenty seconds to complete. Elapsed time is simply not in the context window.

Prompt-level pacing instructions compete with everything else in the prompt. You are asking the model to balance persona, safety rules, tool contracts, and conversational flow against a time limit it cannot accurately measure. As the conversation history grows, context decay occurs. The time limit instruction loses priority to the immediate demands of the dialogue generation.

Because of this, pacing cannot be a prompt property. It has to be something outside the model that observes the clock and acts on it. Without an external supervisor observing the clock, the call continues until a transport or provider hard limit fires.

## How to confirm it

1. Review the transcripts of three calls that hit your hard transport limit. Look for the last time the agent acknowledged a time constraint. Expect to find that any mention of wrapping up disappeared completely after the first few minutes, confirming the prompt instruction decayed.
2. Inject an explicit "wrap up the call now" prompt instruction midway through a long session via your backend, rather than at the start. Expect the agent to immediately begin closing the conversation, confirming that the model retains the ability to close but simply lost track of the original instruction.
3. Check the termination reason for your longest calls in your logging system. Expect to see transport drops, SIP timeouts, or provider hard limits rather than a graceful agent-initiated closure via an end-call tool.

## How it works

I run a pacing watchdog as a separate task alongside the realtime session. The general shape is straightforward: keep the policy out of the prompt, put it in a supervisor that can see the clock, and make the supervisor responsible for enforcing the limit.

Each tick of the watchdog computes how much of the time budget remains. It calculates this purely by looking at the start timestamp and the current system clock. The watchdog uses this remaining budget to decide whether the agent should begin closing the conversation.

When it decides the wrap-up phase should begin, the watchdog injects a closing instruction into the context window. Crucially, it injects this instruction at a turn boundary rather than mid-generation. If you push system instructions while the model is actively synthesizing audio, you risk corrupting the current output or breaking the conversational flow.

If the wrap-up does not happen after the instruction is injected, the watchdog takes over completely and force-arms the end of the call. It gives the agent a short grace period to use its conversational closing tools. If the wrap-up does not happen, the watchdog force-arms the end so teardown completes cleanly at the turn boundary. When a forced teardown occurs, I ensure the tools arm a pending closure rather than performing one immediately, as detailed in [Voice Agent End-Call Tool Truncates The Final Sentence Or Loses The Caller's Last Answer](/blog/voice-agent-end-call-tool-truncates-the-final-sentence-or-loses-the-callers-last/).

## What I would check first

1. Check if your end-call tool actually functions when invoked by the agent. Manually trigger the tool via an API if your system allows it. If the call ends gracefully, the tool works and your problem is prompt decay. If the call hangs or crashes, your teardown logic is broken and the model's pacing is irrelevant.
2. Look at your provider hard limits. Check your raw carrier SIP trunk or your managed service provider for maximum call duration settings. Expect to find a default ceiling that drops the session before the model initiates a close.
3. Check whether your pacing rules rely entirely on prompt instructions. Look for prompt directives like 'keep this under ten minutes' that compete with conversation history. Because elapsed time is not in the context window, prompt-only bounds decay as the call grows. Confirming this isolates prompt decay from tool or transport failures.

## Making the decision logic a pure function

Two structural rules did more for the reliability of this watchdog than the pacing policy itself. The first is how the decision logic is architected.

Testing live voice agents is slow and expensive. Spinning up a media pipeline, establishing a websocket connection, and running an LLM to verify a time limit takes minutes per test. If your time-check logic is tightly coupled to the live session, you will never test enough edge cases.

The decision logic for the watchdog is a pure function of elapsed time and session state. It takes in the current tick, the start time, and a state object tracking whether a close has already been requested. It outputs a decision: do nothing, inject closing instruction, or force terminate.

Because it is pure, it has its own unit tests. I can exercise it exhaustively with no session at all. I can write tests that pass in a time exactly at the threshold, one millisecond past it, or with a negative remaining budget, and assert the correct state transition in milliseconds.

## Surviving a misfire with an environment kill switch

The second structural rule is about operational safety. When you introduce a supervisor that has the authority to forcefully terminate active conversations, you are introducing a new failure domain.

If a bug in your time calculation causes the watchdog to trigger early, it will start hanging up on live callers mid-sentence. In a production environment, you cannot afford to wait for a full deployment cycle to stop the bleeding. Rebuilding an image and deploying a container update takes minutes, which is too slow when active calls are being dropped.

The watchdog is default-on with an environment kill switch. The supervisor reads an environment variable at the start of each session. If the kill switch is engaged, the watchdog task never spawns. A watchdog misfiring on live calls needs to be turned off in seconds by toggling a flag in the infrastructure, not in a deploy.

## Event-sourced instrumentation for the watchdog

When a call ends poorly, you need to know exactly which component made the decision. If you only log that the call ended, you will spend hours trying to figure out if the user hung up, the agent decided to close, or the watchdog forced it.

I log the watchdog's computed remaining budget and its exact decision on every single tick. If a call drops abruptly, I can check the event trace and see the exact millisecond the watchdog decided the budget was exhausted.

The telemetry also explicitly records the termination actor. I record whether each call closed by an explicit agent decision (the model used the end-call tool), by a pacing force-arm (the watchdog stepped in), or by a hard cap (the transport died). This makes every bad close entirely explainable after the fact. If you see a spike in pacing force-arms, you know the agent is failing to heed the injected closing instructions, and you can focus your debugging there.

## Common questions

**Why does the agent ignore my prompt to keep the call under ten minutes?**

A realtime model has no internal clock and elapsed time is not in its context window. Your time limit instruction competes with everything else in the prompt and loses priority as the conversation history grows.

**Can I pass the elapsed time into the system prompt on every turn?**

Pacing cannot be maintained in the prompt because elapsed time is absent from the context window, so instructions compete with conversation history and lose. It also relies on the model to calculate the remaining budget accurately, which it will inevitably fail to do.

**How do I force the agent to wrap up the call?**

Run a separate watchdog task that tracks the clock. When the budget runs low, have the watchdog inject an explicit system instruction at the next turn boundary telling the agent it is time to say goodbye.

**What happens if the agent refuses to end the call after being instructed?**

Your watchdog must include a force-arm fallback. If the wrap-up does not happen after the closing instruction is injected, the watchdog force-arms the end.

Canonical URL: https://www.dreamchasers.lt/blog/llm-ignores-prompt-instructions-to-keep-the-conversation-short
