AgentAuditLog({ Duration retention = defaultRetention, DateTime Function()? clock, }) : _retention = retention, clock = clock ?? (() => DateTime.now().toUtc());