# SOP Opera

> Agentic industrial safety intelligence

The page: https://www.aahil-khan.xyz/work/sop-opera

2026 · System

🏆 Winner — Economic Times 2.0 Hackathon

A compound risk engine that catches the hazard no single sensor is looking for.

## What it does

- Fuses gas readings, work permits, isolation state and worker location into **hazard pathways** — the danger that only exists when four boring facts line up.
- Cut the false negative rate from **44.5% to 0%** across 593 statutorily labelled cases, and alarms **28 minutes** before a conventional single sensor threshold fires.
- **LangGraph** multi agent assessment pipeline with conditional agent fan-out and hybrid pgvector/SQL retrieval over a clause level regulatory corpus.
- The risk verdict stays **fully deterministic**, and every generated citation is validated against the evidence it was retrieved from — no confidently invented regulations.
- Durable Postgres job queue plus a non-blocking **WebSocket** layer with per client backpressure, so a slow browser never stalls the pipeline.
- Hash chained, **tamper evident audit trail**: edit or reorder a recorded safety decision and the verification endpoint names the exact sequence where it happened.

## Built with

Python, TypeScript, FastAPI, LangGraph, PostgreSQL, Next.js, Docker

- [Demo](https://sop-opera.vercel.app)
- [Repo](https://github.com/aahil-khan/SOP-Opera)

## Screenshots

![SOP Opera 1](https://www.aahil-khan.xyz/work/sop-opera-1.webp)

![SOP Opera 2](https://www.aahil-khan.xyz/work/sop-opera-2.webp)

![SOP Opera 3](https://www.aahil-khan.xyz/work/sop-opera-3.webp)
