Most questions of arbitrability can be resolved on motion, using a summary judgment-like standard.  However, just like summary judgment, if there are genuine disputes of material fact about whether a claim must be arbitrated — like competing evidence about whether the parties ever formed an arbitration agreement — those should be determined by a trial.