SPRS
WHS Regulatory Compliance System
Automated WHS statutory position tracking for mining sites, replacing a manual spreadsheet process with fuzzy matching, audit trails, and scheduled compliance reporting. Built the matching algorithm, full-stack app, Terraform deployment, and a video pitch deck for senior stakeholders. Shipped in 61 days.
WHS (Mines) Regulations 2022 require mining operators to track statutory position holders at every site. The process was manual, with spreadsheets reconciled by hand each week. Penalties for non-compliance go up to $16.13M.
Sole engineer, 98% of 189 commits. Matching algorithm, full-stack app, Terraform deployment, and Remotion pitch deck for executive stakeholders.
Highlights
Six-category fuzzy matching
RapidFuzz token_sort_ratio classifies every match as EXACT (100%), FUZZY (90%+), PARTIAL (3/4 fields), DISCREPANCY (same person, different role), TO_ADD, or TO_REMOVE. Confidence scoring with detailed explanations for each classification
7-year audit trail with rollback
Every action logged with old/new JSON snapshots, user, IP, and user agent. Personnel history table tracks all changes with version numbers. Full rollback to any previous state for regulatory compliance
Scheduled compliance reports
4 report types (statutory positions, reconciliation summary, personnel by site, weekly submissions) in CSV, JSON, or branded PDF. Report generation cut from 1-2 hours to 2 minutes. Delivered by SES on a configurable cadence
Role-based access via SSO groups
6 SSO security groups auto-mapped to admin/user roles across DEV/STG/PRD. JWT sessions with 8-hour access tokens and 30-day refresh. Strict admin gates on sensitive operations