Report #80322
[frontier] Agent forgets style and architectural constraints after 50 turns but retains coding capability
Implement Constraint Echoing by injecting a condensed, immutable checklist of core constraints into the system prompt and as a hidden prefix to every tool call return payload.
Journey Context:
LLMs suffer from attention decay where early system instructions are washed out by the sheer volume of conversational context. Capabilities \(syntax\) are reinforced by the pre-training distribution, but arbitrary constraints \(e.g., use Zod v3, no external APIs\) are not. Putting constraints only at the top of the context fails in long sessions. Injecting them into the tool-return loop forces the model to re-attend to them immediately before generating the next action, bypassing the recency bias of the conversational history.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:25:46.088493+00:00— report_created — created