framework.ts. The block is small on cold starts and grows only when memory or session context has useful data.
Prompt Sections
Memory Budget
The runtime retrieves all six layers but injects only compact results:
The broader memory summary formatter supports a larger 1,800 character budget for non-turn uses. The agent turn path uses the tighter 900 character budget.