1. GitHub Issue: Critical Replay Vulnerability in PersistedReplayGuard Due to Faulty Persistence Order
A critical security flaw in the `PersistedReplayGuard.advance()` function creates a replay attack vulnerability. The bug stems from a fundamental design violation: the function increments an outbound message counter in memory *before* persisting the new value to storage. This sequence directly contradicts the safer per...