Modules / ghcr.io / i2y

ritsu-osha

A newer version, 1.0.1, is out

Limits from the occupational safety standards of the United States, as rules of rulec

  • Signed by i2y/ritsu
  • Digests match
  • Passes ritsu check
  • 3 data sources pinned by SHA-256
  • Published 2026-11-05
  • Needs ritsu 0.41.0 or later
  • Source

What it holds

NameWhat it isTry it, or read its code
osha_excavationWhether an excavation needs a protective system against cave-ins, from 29 CFR 1926.652(a)(1)
osha_extinguisherHow far an employee may have to walk to a portable fire extinguisher. Transcribed from 29 CFR 1910.157(d), read out of the eCFR
osha_noiseThe daily exposure to continuous noise a workplace may permit, from Table G-16 of 29 CFR 1910.95

Limits from the occupational safety standards of the United States, as rules of rulec, for a module of ritsu to use. Each rule reads one section of Title 29 of the Code of Federal Regulations. The section is kept beside the rule as the eCFR served it, and the rule pins it by its SHA-256.

FileRuleWhat it answersSection
osha_extinguisher.ruleosha_extinguisherHow far an employee may have to walk to a portable fire extinguisher29 CFR 1910.157(d)
osha_noise.ruleosha_noiseHow long a workplace may expose an employee to a level of continuous noise29 CFR 1910.95, Table G-16
osha_excavation.ruleosha_excavationWhether an excavation needs a protective system against cave-ins29 CFR 1926.652(a)(1)

The rules transcribe the sections as of 2026-01-01, to be read against them. They are not legal advice. Where a section leaves something open, a comment in the rule says how it was decided: osha_noise.rule gives a level between two listed ones the shorter of their two times.

Use

Add the module, add the line that checks its signature to your ritsu.mod, and fetch it:

$ ritsu mod add osha ghcr.io/i2y/ritsu-osha@1.0.0
signature "ghcr.io/i2y/ritsu-osha" by matching "^https://github[.]com/i2y/ritsu/" issuer "https://token.actions.githubusercontent.com"
$ ritsu mod fetch

Then read it from your own code of kaname or dandori:

use rule noise from "@osha/osha_noise.rule"

Sources

rulec source outdated <file> asks the eCFR whether a later amendment touched a section. THIRD_PARTY_NOTICES.md lists the copies under sources/law/.

The rules are under the MIT License or the Apache License, version 2.0, at your option, as ritsu is.

Versions

A version that follows a change in the law raises the minor version. A version that renames a file or removes one, or changes the inputs or outputs of a rule, raises the major version.

3 rules

Each page is drawn by its language from the file at this version.

osha_excavation

osha_excavation.rulerule

Whether an excavation needs a protective system against cave-ins, from 29 CFR 1926.652(a)(1)

Inputs
depth (1 to 30 ft); stable_rock; cave_in_indication
Outputs
protection (required, not_required)
Source
29 CFR 1926, as of 2026-01-01

osha_extinguisher

osha_extinguisher.rulerule

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

Inputs
hazard (a, b, c, d); nearby (class_a, class_b)
Outputs
travel (50 to 75 ft)
Source
29 CFR 1910, as of 2026-01-01

osha_noise

osha_noise.rulerule

The daily exposure to continuous noise a workplace may permit, from Table G-16 of 29 CFR 1910.95

Inputs
level (90 to 130 dB)
Outputs
permitted (15 to 480 min)
Source
29 CFR 1910, as of 2026-01-01

Try

1.0.0 is the oldest version here

When a new version is published, this tab says which inputs get a different answer, which days become closed or open, and which days the calendar newly knows.

2 versions

VersionPublishedDigestFilesChecked
1.0.1 latest2026-11-07sha256:e7d92617fae310its digests and its signature; passes ritsu check
1.0.02026-11-05sha256:82035d73e40010its digests and its signature; passes ritsu check

Rules

Data and other files

About the module