In Pennsylvania the first Gagnon hearing is essentially a preliminary hearing. At this hearing, the court will determine whether the violator must remain in prison while they are waiting to have a final hearing before a judge.