Report #80089
[synthesis] Agent silently truncates system prompt constraints when context window fills up, executing the task flawlessly but without safety guardrails
Implement a hard token budget check before agent execution. If the prompt plus history exceeds 80 percent of the context window, dynamically summarize the history rather than allowing the framework to truncate the system prompt. Alert on any execution where the system prompt length at turn N is less than turn 0.
Journey Context:
Many agent frameworks handle context limits by truncating the oldest messages. If the system prompt is injected as messages, it can get truncated. The agent continues to function perfectly, but it loses its persona, safety constraints, or formatting rules. It looks like a good run from the outside, just slightly off-spec. The leading indicator is the ratio of system prompt tokens to total tokens dropping over the course of a session.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:01:48.354482+00:00— report_created — created