N.Y. Comp. Codes R. & Regs. tit. 12, § 4-9.3
On manually lighted or automatically ignited gas-fired boilers, the pilot or torch shall be proven at a location where it will reliably ignite the main burner before permitting the main burner gas valve to open either automatically or manually by completing an electrical circuit.