osha_extinguisher.rule
39 lines · 1,555 B · rulec
rule osha_extinguisher v1
description "How far an employee may have to walk to a portable fire extinguisher. Transcribed from 29 CFR 1910.157(d), read out of the eCFR"
# The section is fetched as of a date, kept as a copy beside the rule and pinned, and
# `rulec source outdated` asks the eCFR whether a later amendment touched it.
source osha = law ecfr "29 CFR 1910" asof 2026-01-01
"§1910.157" sha256:c2a9ce966c7e2269
enum fire_class = a | b | c | d
enum pattern = class_a | class_b
# (d)(5) sends a Class C hazard to "the appropriate pattern for the existing Class A or Class
# B hazards", so which of the two is present has to be an input. For the other three classes
# it is not read, and the `-` cells below say so.
inputs
hazard : fire_class
nearby : pattern
outputs
travel : length[ft] round down(1ft)
# The section states the distances in feet with the metre in brackets — "75 feet (22.9 m)" —
# so feet is the unit the rule is written in. A length is one integer in its declared unit,
# and there is no conversion to decide.
table distance @osha "§1910.157"
policy unique
| hazard | nearby | -> travel : length[ft] |
| a | - | 75ft |
| b | - | 50ft |
| c | class_a | 75ft |
| c | class_b | 50ft |
| d | - | 75ft |
examples
| hazard | nearby | -> travel |
| a | class_a | 75ft |
| b | class_a | 50ft |
| c | class_b | 50ft |
| d | class_a | 75ft |