## Lesson — Use unique temp files for atomic writes

**Tags:** filesystem, concurrency
**Scope:** packages/cli/src/commands/recurrence-stats.ts

When performing atomic writes via temp-and-rename, include a process PID or random suffix in the temp filename to prevent collisions during concurrent executions.
