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_excavation | Whether an excavation needs a protective system against cave-ins, from 29 CFR 1926.652(a)(1) | 試すコード |
| osha_extinguisher | 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 | 試すコード |
| osha_noise | The 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.rule | osha_extinguisher | 持ち運び式の消火器まで、従業員が歩く距離の上限 | 29 CFR 1910.157(d) |
osha_noise.rule | osha_noise | 連続する騒音の大きさごとの、許される時間 | 29 CFR 1910.95 の Table G-16 |
osha_excavation.rule | osha_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.1
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 の好きなほうで使えます。
法令の変更に合わせる版は、マイナーの版を上げます。ファイルの名前を変える版、ファイルを消す版、規則の入力や出力を変える版は、メジャーの版を上げます。 この README の言葉だけを直す版は、パッチの版を上げます。
ページは、この版のファイルからそれぞれの言語が描きました。
Whether an excavation needs a protective system against cave-ins, from 29 CFR 1926.652(a)(1)
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 daily exposure to continuous noise a workplace may permit, from Table G-16 of 29 CFR 1910.95
ritsu はすべての入力を比べるか、決められないと言います。一部を試すことはしません。
ritsu mod diff --format markdown と同じ)| 変わり方 | ファイル |
|---|---|
| 変わった | README.ja.md |
| 変わった | README.md |
| 変わった | ritsu.mod |
osha_excavation.rule (rulec):同じ答えですosha_extinguisher.rule (rulec):同じ答えですosha_noise.rule (rulec):同じ答えですREADME.ja.md (ダイジェスト):中身が変わりましたREADME.md (ダイジェスト):中身が変わりました振る舞いにもインターフェースにも、違いはありません。
| osha_excavation.rule | 1,763 バイト |
| osha_extinguisher.rule | 1,555 バイト |
| osha_noise.rule | 1,707 バイト |
| sources/law/29-CFR-1910@2026-01-01/1910.157.xml | 14,356 バイト |
| sources/law/29-CFR-1910@2026-01-01/1910.95.xml | 83,466 バイト |
| sources/law/29-CFR-1926@2026-01-01/1926.652.xml | 11,548 バイト |
| README.ja.md | 2,331 バイト |
| README.md | 2,067 バイト |
| THIRD_PARTY_NOTICES.md | 822 バイト |
| ritsu.mod | 401 バイト |