AI agent context management starts outside the transcript
An AI feature that works for three turns and then dies with a context length exceeded error has a design flaw. The transcript was never a database. Here’s where the run log belongs and how to keep prompt caching working.