pub fn parse_spec(raw: &str) -> Result<Spec, String>
Parse and strictly validate one complete headless-driver payload.