Event sourcing is an architectural pattern where the state of an application is derived from a persistent, append-only sequence of immutable domain events, which serve as the system of record. Instead of storing only the current state, the entire history of state-changing actions is captured. This provides a complete audit trail, enables temporal querying (reconstructing past states), and forms the basis for reliable state synchronization and conflict resolution in multi-agent systems.
