SYSTEM DOCUMENTATION & COMPLIANCE MATRIX
SentraGrid Core Architecture, AI Safety Engine, and OISD / Factory Act Regulatory Controls
* Section 37: Factory Act Ventilation checks
* SIMOPS Buffer: 50m spatial safety matrices
SentraGrid relies on a distributed multi-agent system designed for low-latency streaming and high-accuracy hazard checks.
Sensor inputs (toxic gases H₂S/CO, temperature, and pressure) are written directly to the database. These trigger immediate asynchronous evaluation events.
A high-throughput streaming pipeline pushes real-time telemetry, geolocation updates, and alert events to control room screens via HTML5 EventSource with low network overhead.
User safety queries are embedded using Hugging Face's `all-MiniLM-L6-v2` in the cloud. A Supabase `pgvector` RPC query (`match_incident_reports`) performs cosine similarity search. Llama 3.3 synthesizes technical answers citing regulatory sources.
Traditional safety systems utilize isolated sensors with static thresholds (e.g. alarming only if CO > 25 ppm). SentraGrid solves the **"sub-threshold hazard"** problem.
- Telemetry Correlation: If multiple process values (e.g. gas level and temperature) trend upward simultaneously, a multiplicative risk score is computed.
- Active Permit Conflicts: Active work permits inside a zone or adjacent to it multiply the baseline score by configured weights (e.g., Conflicting Hot Work + Confined Space Entry = 3.0x multiplier).
- Worker Exposure: Risk score increases by `+2` for every worker present in an elevated-risk zone, reflecting increased exposure potential.
- LLM Generation Cooldown: LLM calls are cached for 45s. Telemetry changes during the cooldown trigger a microsecond rule-based execution, preventing backend lag.
SentraGrid safety logic is mapped directly to Indian statutory regulations to maintain legal compliance and prevent undocumented safety overrides:
| Statute | Provision | SentraGrid Automated Control |
|---|---|---|
| OISD-105 Section 4.3 | Mandatory atmospheric testing before confined space entries. | Permit Intelligence Agent blocks confined space entry permit unless H₂S and CO are within limits. |
| OISD-105 Section 5.1 | Avoid simultaneous operations (SIMOPS) conflicts. | Digital Permit Agent checks 50m adjacent zones for active ignition permits. |
| Factory Act Sec 36 | Prevention of inhalation of gas/dust in confined spaces. | Compound Risk Engine checks continuous gas trends and raises alerts to standby attendants. |
| Factory Act Sec 41 | Maintenance of safety records and override approvals. | Override compliance ledger logs justification, officer name, and timestamp. |
In a critical alert state, the Emergency Response Orchestrator immediately coordinates the response plan to save lives: