Can a company see where its HR policies break the law, without hiring a consultant?
India folded dozens of separate labour laws into four Labour Codes: Wages, Industrial Relations, Social Security, and Occupational Safety & Health. Every company's employee handbook now has to be checked against them. I designed and prototyped a tool where an HR manager uploads their policies and gets a scored audit that shows, clause by clause, what complies and what does not.
This is a self-initiated concept. I owned the product definition, the UX, the UI, and a working front-end prototype. The AI results shown in the prototype are hard-coded sample data.

A three-screen flow that takes a policy from upload to an evidence-backed risk score.
These figures describe the prototype and its sample data. The concept has not been tested with real users yet.
Checking a policy against the law is slow, specialist work, and the answer is usually a document nobody can act on.
An HR manager at a mid-sized company has a handbook, a leave policy and a salary structure. They are expected to know whether those still comply with four new Codes. The usual route is a legal consultant or a long manual read-through, and the output is a long report with no clear sense of what is most urgent.
Hard to know where you stand
Hard to trust the answer
Hard to know what to fix first
Key insight: compliance is not one score. People need to see risk broken down by Code and by severity, with the evidence next to every finding.
How might we let someone upload their policies and understand their legal risk at a glance, then drill down to the exact clause and the fix?
I studied the existing tool and collected references before designing anything new.
This project did not include user interviews. I started from the first version of the tool I built, a Vite + FastAPI app scoring documents against security frameworks. I audited its screens and flow, then collected reference designs for each part of the new flow on a FigJam board: upload components, score cards, gauges, radar charts and heat maps.
What the audit of the first version showed:
- One score for everything. The report gave a single compliance percentage plus counts by severity.
- Every page rebuilt its own layout. There was no shared design system, and the report only listed gaps, so what passed was invisible.
- A long wait with almost no feedback. The audit runs for minutes, but the only signal was a line of text on a button.

I compared a few directions for the score and the waiting time, then picked the ones that made the evidence visible.
Option 1 — One compliance percentage
The first version's approach. Simple to read, but it hides which Code is failing and treats every requirement as equal. Rejected.
Option 2 — Risk score plus a heat map by Code and severity
Rows are the four Labour Codes and columns are severity. Each cell's shade shows how many gaps sit there, and clicking a cell filters the findings. This answers "where is the problem and how bad is it" in one view. Chosen.
Option 3 — A separate waiting screen versus one card that changes state
My scoping table listed the waiting screen as its own screen. The upload references on my board suggested a single card that grows from empty to files to progress. I kept a dedicated audit screen, but built it as the same card in a new state, so the flow reads as one object changing.
Option 4 — Risk score versus compliance score as the headline
These run in opposite directions. I made the risk score the headline and kept a weighted compliance percentage as a smaller supporting number, so the page never reads both ways.
Upload your policies, watch the audit work, then read a risk score you can trace back to the law.
1. Upload multiple policy files
A single card with a dashed dropzone. Users drag and drop PDF or Markdown files, or browse. Each file shows its type, name and its own progress bar, ending in a green check. Unsupported files get a clear message. The "Run compliance audit" button only appears once every file has finished.

2. A waiting screen that teaches while it works
The audit takes time, so the wait is useful. A progress bar fills while a shimmering status line walks through named stages: reading the documents, extracting clauses, checking each of the four Codes in turn, then calculating the score. Below it, 13 short facts from the Labour Codes fade in, like loading-screen tips in a game, so users learn something while they wait. When it reaches 100% the card moves straight to the score.

3. A score card with evidence behind every number
A semicircle gauge gives the headline risk score (63, High risk). Next to it sit a plain-language summary and a score for each of the four Codes. A heat map shows gaps by Code and severity, and the findings list expands to show four things for each requirement: what the law says, what the policy says (quoted, with the source document and section), the gap, and the suggested fix. A disclaimer states it is an AI-assisted check, not legal advice.

How the score works
Each requirement carries a weight (critical 4, high 3, medium 2, low 1). Met earns full weight, partial earns half, not met earns none. Compliance is the earned share of the total, and risk is 100 minus compliance. Risk of 60 or more reads as high, 35–59 as medium, and below 35 as low.
I built the flow as a working Next.js prototype so the interactions could be felt, not just viewed.
The prototype uses Next.js (App Router), Tailwind CSS, Motion for transitions, and Motion Primitives for the text effects on the waiting screen. Uploads and the audit are simulated: the waiting screen runs for about 13 seconds, and any file you upload produces the same report. The report is hard-coded sample data for a made-up company, Nimbus Retail Pvt. Ltd., with two policy documents I wrote with deliberate gaps (for example overtime at 1.5× where the law requires 2×, and basic pay at 40% of CTC where the law needs at least 50%). The same screens are designed in Paper.
The original tool, built before this redesign, is a full working app: Vite and React on the front end, FastAPI on the back end, Supabase with pgvector for storage and search, and Gemini 2.5 Flash with Gemini embeddings for retrieval-based checking. It already had login, audit history and an admin area, but it was built to score documents against security frameworks, not the Labour Codes. The next step is to connect the new interface to that backend, retarget it at the Labour Codes, and run audits as background jobs, because a real scan takes minutes.
What I learned
Takeaway 1 — Break a score down, or nobody can act on it.
A single number told users how worried to be but not what to do. Splitting risk by Code and severity, and attaching the law, the quote and the fix to each finding, is what makes the number believable.
Takeaway 2 — Turn the wait into part of the product.
An audit that takes minutes feels long when nothing happens. Showing named stages and real facts from the law makes the waiting time useful, and sets up the report that follows.