モジュール / ghcr.io / i2y

ritsu-osha

新しい版 1.0.1 があります

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

  • i2y/ritsu の署名を確かめました
  • ダイジェストが一致
  • ritsu check を通ります
  • データ 3 件を SHA-256 で固定
  • 公開 2026-11-05
  • ritsu 0.41.0 以降が要ります
  • ソース

入っているもの

名前説明試す、コードを読む
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

米国の労働安全基準の上限と条件を、ritsu のモジュールが使える rulec の規則にしたものです。どの規則も、連邦規則集(CFR)第 29 編の一つの節を読みます。その節は eCFR が配ったままの形で規則の横に置き、規則が SHA-256 で固定しています。

ファイル規則答えること節
osha_extinguisher.ruleosha_extinguisher持ち運び式の消火器まで、従業員が歩く距離の上限29 CFR 1910.157(d)
osha_noise.ruleosha_noise連続する騒音の大きさごとの、許される時間29 CFR 1910.95 の Table G-16
osha_excavation.ruleosha_excavation掘削に崩落を防ぐ設備が要るか29 CFR 1926.652(a)(1)

規則は 2026-01-01 時点の節を書き写したもので、原文と見比べて読むためのものです。法律の助言ではありません。節が決めていないところは、どう決めたかを規則のコメントに書きました。たとえば osha_noise.rule は、表の二つの値のあいだの騒音に、短いほうの時間を当てます。

使い方

モジュールを依存に足し、署名を確かめる行を ritsu.mod に書いて、取ってきます。

$ 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

あとは、自分の kaname や dandori のコードから読みます。

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

出典

rulec source outdated <ファイル> で、節がその後に改正されたかを eCFR に問い合わせられます。sources/law/ のコピーの一覧は THIRD_PARTY_NOTICES.md にあります。

規則のファイルは、ritsu と同じく、MIT License か Apache License 2.0 の好きなほうで使えます。

版

法令の変更に合わせる版は、マイナーの版を上げます。ファイルの名前を変える版、ファイルを消す版、規則の入力や出力を変える版は、メジャーの版を上げます。

規則 3 本

ページは、この版のファイルからそれぞれの言語が描きました。

osha_excavation

osha_excavation.rule規則

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

入力
depth (1〜30 ft); stable_rock; cave_in_indication
出力
protection (required, not_required)
出典
29 CFR 1926(2026-01-01 時点)

osha_extinguisher

osha_extinguisher.rule規則

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

入力
hazard (a, b, c, d); nearby (class_a, class_b)
出力
travel (50〜75 ft)
出典
29 CFR 1910(2026-01-01 時点)

osha_noise

osha_noise.rule規則

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

入力
level (90〜130 dB)
出力
permitted (15〜480 min)
出典
29 CFR 1910(2026-01-01 時点)

試す

1.0.0 はこのサイトでいちばん古い版です

新しい版が公開されると、このタブに、どの入力の答えが変わるか、どの日が休みに変わるか、どの日を新しく知るかが出ます。

版 2 個

版公開ダイジェストファイル確かめたこと
1.0.1 最新2026-11-07sha256:e7d92617fae310ダイジェストと署名、ritsu check を通過
1.0.02026-11-05sha256:82035d73e40010ダイジェストと署名、ritsu check を通過

規則

osha_excavation.rule1,763 バイト
osha_extinguisher.rule1,555 バイト
osha_noise.rule1,707 バイト

データとそのほかのファイル

モジュールについて

README.ja.md2,253 バイト
README.md1,988 バイト
THIRD_PARTY_NOTICES.md822 バイト
ritsu.mod401 バイト