The subject matter of this specification can be implemented in a roofing system includes a sloped roof structure extending from a lower elevation area that is accessible from a lower edge of the sloped roof structure, and extending to a higher elevation area. The system further includes an elongate rail structure attached to the sloped roof structure, and an attachment mechanism that slides along and is securely attached to the elongate rail structure, wherein the attachment mechanism includes an attachment structure for securely tethering the person to the elongate rail structure to prevent the attached person from falling off the sloped roof structure.