Event Sourcing is a software design pattern where the state of an application is derived from an immutable, append-only sequence of domain events, which serve as the system's single source of truth. Instead of storing the current state directly, the system persists every state-changing action as a discrete event object. The current state is reconstructed by replaying the entire event log or a snapshot plus subsequent events, ensuring a complete, auditable history of all changes. This pattern is a cornerstone for agentic memory, enabling precise state reconstruction and temporal reasoning.
