Training Compliance Model Sandbox
The parameterized model from Designing a Training Compliance Model That Doesn’t Break at the Border, coded and runnable. Log events for a worker, edit the rules as data, and watch every obligation recompute — including across Turkey’s real regulation change of 2 April 2026.
Evaluation date
All calculations on this page are evaluated for this date. The compliance engine automatically selects the regulation version active at this point in time.
The specification — rules as data
Each training requirement is one record: durations, modules, trigger events, thresholds, and consequences. Regulations are tracked by their active date ranges — the compliance engine matches the version active on the date of evaluation; new rules never overwrite historical ones. Every parameter shown below is read by the engine, not displayed from a second copy.
Company overlay — stricter than the law
Company policies and legal minimums are evaluated in separate layers. If a company setting is weaker than the law, the legal minimum applies automatically.
Compliance is tracked at the program level, matching the regulation. The training certificate is completed only when all modules meet their required hours and assessments, starting a single validity period. Modules track individual requirements and progress toward renewal. All status outputs are derived from the event history below.
Log an event
Company-level quota — first-aid coverage
Calculated in real time. The training itself is organized by outsourced certified training centers; each certificate enters the record with its issue date, any update-training date, and provider. Validity, the update-training window, and the coverage quota are computed from the specification on the selected evaluation date — expiry is never stored, and an update logged outside the window does not renew.
Simplifications in this sandbox
- Scope: Demonstrates one training program (Basic OHS) in one jurisdiction (Turkey). Out of five defined modules, four are active at any time, selected by the workplace hazard class (Article 9/4–9/5).
- Event Mapping: Each training specification declares its own trigger events. Job changes, workplace transfers, equipment changes, and long absences require the site-risks module (Articles 18 and 25); accidents and near misses require the post-incident module (Article 19); hiring or a workplace transfer requires a 2-hour induction session (Article 7). The 90-day grace period for the basic training runs from the hire event.
- Fixed Hazard Class: The workplace hazard class is a constant setting; changes to the hazard class mid-history are not simulated.
- Version Scope: Only durations and renewal intervals are versioned — which covers Turkey's actual 2026 change. Module definitions, trigger events, thresholds, and consequences are version-invariant in this sandbox; a real regulation change to any of those would need them moved under the version record, per the same versioning rule.
- Background Validation: Sessions shorter than a module's minimum chunk, or delivered remotely where the module requires face-to-face delivery, are recorded in the history but do not count toward completion — the engine judges them, the form does not block them. Trainer credentials and prerequisites are not modeled.
- Audience: The audience parameter from the article — required and exempt roles and groups — is not modeled. The sandbox tracks a single worker to whom every specification applies.
- Assessment Rules: A third consecutive failed assessment resets the module's training hours, requiring the worker to retake the session (Article 16/3).
- First Aid: First-aider training is delivered and administered by certified training centers, outside this system. Log a certification or an update training below the quota panel and the crew's coverage recomputes the same way the worker's obligations do — nothing about the site's first-aiders is stored state. Validity, the update-training window — including a missed window invalidating the certificate — and the site quota are computed from the specification. The course itself — 16 hours over 2 days, 85-point theoretical and practical exams, two attempts before a full retake (Article 22 of the first-aid regulation) — is not simulated.