SENTRAGRID
SO
API CONNECTION OFFLINE / COLD START: SentraGrid backend is waking up (Render free tier). Real-time telemetry, simulators, and intelligence agents will initialize shortly (30-50s).

SYSTEM DOCUMENTATION & COMPLIANCE MATRIX

SentraGrid Core Architecture, AI Safety Engine, and OISD / Factory Act Regulatory Controls

Safety Checklists
* OISD-105: Work Permit System checks
* Section 37: Factory Act Ventilation checks
* SIMOPS Buffer: 50m spatial safety matrices
1. SYSTEM ARCHITECTURE

SentraGrid relies on a distributed multi-agent system designed for low-latency streaming and high-accuracy hazard checks.

A. IoT Realtime Data Processor

Sensor inputs (toxic gases H₂S/CO, temperature, and pressure) are written directly to the database. These trigger immediate asynchronous evaluation events.

B. Server-Sent Events (SSE) Broadcast

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.

C. Vector Retrieval & Q&A (RAG)

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.

2. COMPOUND RISK ENGINE & ANALYTICS

Traditional safety systems utilize isolated sensors with static thresholds (e.g. alarming only if CO > 25 ppm). SentraGrid solves the **"sub-threshold hazard"** problem.

Compound Risk Calculation Algorithm:
  • 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.
3. OISD & FACTORY ACT COMPLIANCE MATRIX

SentraGrid safety logic is mapped directly to Indian statutory regulations to maintain legal compliance and prevent undocumented safety overrides:

StatuteProvisionSentraGrid Automated Control
OISD-105 Section 4.3Mandatory 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.1Avoid simultaneous operations (SIMOPS) conflicts.Digital Permit Agent checks 50m adjacent zones for active ignition permits.
Factory Act Sec 36Prevention of inhalation of gas/dust in confined spaces.Compound Risk Engine checks continuous gas trends and raises alerts to standby attendants.
Factory Act Sec 41Maintenance of safety records and override approvals.Override compliance ledger logs justification, officer name, and timestamp.
4. EMERGENCY RESPONSE PROTOCOL (FIRST 10 MINUTES)

In a critical alert state, the Emergency Response Orchestrator immediately coordinates the response plan to save lives:

T=0s (Alert Confirmed): Triggers plant evacuation alarms, pushes broadcast notification to worker wearable screens, and flags safety officers via active alerts.
T+60s (SCADA Evac Plan): Dispatches structural air extractor valves to clear gas pockets, cuts off adjacent hot work power grids automatically, and provides digital routing guides.
T+5m (Incident Log Archive): Locks all process records, SCADA sequences, permit audits, and worker telemetry in the DB for post-incident review.