namespace AttendanceHub.Sync.Domain;
///
/// Single source of truth for how much punch history the local SQLite outbox keeps.
///
/// Both the ingest path (LivePunchIngress + ReconciliationPersistence) and the daily prune pass
/// (LedgerMaintenance) MUST share this window. Sharing it is what keeps the ledger bounded without
/// a re-upload loop: a full-buffer device read re-delivers the whole device history on every pass, so
/// anything older than this window is dropped at ingest and never persisted again, while anything
/// inside it dedupes against the rows already there.
///
public static class RetentionPolicy
{
/// Keep the same 90-day horizon as the operational reporting window.
public const int PunchRetentionDays = 90;
/// The ingest/prune punch window.
public static TimeSpan PunchRetention => TimeSpan.FromDays(PunchRetentionDays);
}