A system for preventing a flip door from being raised without a guardrail installed, the system comprising: a flip door ; a guardrail comprising a post , the post having a post dog ; and a safety latch mechanism configured to be coupled to a fixed structure , the safety latch mechanism comprising: a body , a socket disposed in the body and configured to receive the post , and a door latch rotatably coupled to the body and biased in a latched position that is configured to retain the flip door in a lowered position, wherein based on the post being inserted into the socket of the safety latch mechanism , the post dog engages with and rotates the door latch from the latched position to an unlatched position, thereby allowing the flip door to be raised from the lowered position to a raised position, wherein: the safety latch mechanism further comprises a post latch rotatably coupled to the body and biased in a locked position, the flip door comprises a dog that is configured to engage with and retain the post latch in an unlocked position based on the flip door being in the lowered position, and based on the post being inserted into the socket of the safety latch mechanism and the flip door being raised to the raised position, the dog is configured to disengage from the post latch , thereby causing the post latch to rotate from the unlocked position to the locked position, whereupon the post latch engages with the post dog and retains the post in the safety latch mechanism . a flip door ; a guardrail comprising a post , the post having a post dog ; and a safety latch mechanism configured to be coupled to a fixed structure , the safety latch mechanism comprising: a body , a socket disposed in the body and configured to receive the post , and a door latch rotatably coupled to the body and biased in a latched position that is configured to retain the flip door in a lowered position, a body , a socket disposed in the body and configured to receive the post , and a door latch rotatably coupled to the body and biased in a latched position that is configured to retain the flip door in a lowered position, wherein based on the post being inserted into the socket of the safety latch mechanism , the post dog engages with and rotates the door latch from the latched position to an unlatched position, thereby allowing the flip door to be raised from the lowered position to a raised position, wherein: the safety latch mechanism further comprises a post latch rotatably coupled to the body and biased in a locked position, the flip door comprises a dog that is configured to engage with and retain the post latch in an unlocked position based on the flip door being in the lowered position, and based on the post being inserted into the socket of the safety latch mechanism and the flip door being raised to the raised position, the dog is configured to disengage from the post latch , thereby causing the post latch to rotate from the unlocked position to the locked position, whereupon the post latch engages with the post dog and retains the post in the safety latch mechanism . the safety latch mechanism further comprises a post latch rotatably coupled to the body and biased in a locked position, the flip door comprises a dog that is configured to engage with and retain the post latch in an unlocked position based on the flip door being in the lowered position, and based on the post being inserted into the socket of the safety latch mechanism and the flip door being raised to the raised position, the dog is configured to disengage from the post latch , thereby causing the post latch to rotate from the unlocked position to the locked position, whereupon the post latch engages with the post dog and retains the post in the safety latch mechanism . <EOS>