Your question is Design Agent Workflow Memory Management. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
You are building a long running agentic workflow platform that plans, calls tools, retrieves documents, and resumes work across sessions. The system needs to keep useful context over time without letting memory grow unchecked or degrade response quality.
How do you manage state and memory in long-running agentic workflows?