Alma stores context in three layers because not all knowledge is the same shape. Memories hold facts and preferences. Episodes capture event sequences and timelines. Procedures encode workflows and decision trees. Context assembly hits all three in parallel and builds the system prompt in under 100ms.
Not all context is equal. Memories store facts and preferences. Episodes capture event sequences and timelines. Procedures encode workflows and decision trees. Context assembly fetches all three in parallel with 3-second timeouts, scores by 5 factors, and builds the system prompt in under 100ms.