Work / Bharat-First / HaqSetu

No. 13 · Bharat-First · Justice

Haq = your right · Setu = the bridge

The court is
three bus rides
and five years away.

India has 40 million pending cases. The poorest wait the longest. HaqSetu is a voice-first AI civic assistant for rural India: ask in your language, on the phone you have, and learn what you are entitled to. Schemes, rights, eligibility, grievance, SOS. No app. No queue. No fee.

40MCases pending in Indian courts
22Indian languages, voice-first
25+Civic services on one bridge
550+Tests in CI, every commit
0Critical CVEs in container scan

Act I · The Distance

A right you cannot reach
is not a right.

India writes good law. The Constitution is generous. The schemes are real. But between a citizen in a village and the office that holds her file, there is a literacy gap, a language gap, a transport gap and a queue. Most never close it.

  1. i.

    The form is in the wrong language.

    Most rural Indians do not speak the language the form is printed in. Most cannot afford to pay someone to read it.

    Literacy gap
  2. ii.

    The legal aid office has no time.

    Free legal aid clinics handle hundreds of walk-ins. Triage is rough, follow-up is rare, transit alone costs a day's wage.

    Triage gap
  3. iii.

    The grievance has no number.

    Without a tracking ID, no portal can chase a case. Most complaints disappear into a register no one re-opens.

    Tracking gap
  4. iv.

    Forty million cases are already pending.

    Adding to the pile is not a plan. The bridge has to keep simple grievances out of the courts in the first place.

    Court load

Act II · The Promise

Speak the question.
Hear the right.

A widow in a village picks up a basic smartphone. She speaks. The bridge replies in her own dialect, with the exact scheme, the exact form, the exact office, and a tracking number she can read out tomorrow.

Citizen · Bilaspur, HP

मेरे पति की पेंशन तीन महीने से नहीं आई। मुझे क्या करना चाहिए?

"My husband's pension has not arrived for three months. What should I do?"

HaqSetu · Within 6 seconds

यह NSAP की Indira Gandhi National Widow Pension Scheme से जुड़ा है। नज़दीकी सेवा केंद्र Ghumarwin SDM Office में है, 18 km दूर। मैं आपकी ओर से शिकायत संख्या HS-2026-04812 दर्ज कर रही हूँ।

"This is under NSAP, Indira Gandhi National Widow Pension Scheme. The nearest service centre is the Ghumarwin SDM Office, 18 km away. I have filed grievance HS-2026-04812 on your behalf."

HaqSetu · Continuing

मैं आपको SMS पर पूरा फॉर्म और बैंक की ज़रूरी जानकारी भेज रही हूँ। सात दिनों में जवाब न आए तो दोबारा कॉल करें।

"I am sending the complete form and bank details to you on SMS. If there is no response in seven days, call again."

Act III · The Spans

One bridge.
Many crossings.

HaqSetu is not one feature. It is a set of focused services that together hand a citizen a single, audible answer to "what is my right and how do I get it?".

01 · Voice

Voice agent

End-to-end speech in 22 languages, with a Hinglish-aware NLU layer for code-mixed dialogue.

02 · Knowledge

Scheme search

Searches NSAP, PMAY, MGNREGS and dozens more by symptom, not by scheme name. RAG-backed.

03 · Knowledge

Legal rights

Plain-language explanation of constitutional and statutory rights relevant to the citizen's situation.

04 · Action

Eligibility check

Asks just enough questions to confirm whether the citizen actually qualifies before sending them anywhere.

05 · Action

RTI generator

Drafts an RTI application in correct legal language for the right authority. Hands it back as a printable PDF.

06 · Action

Grievance tracker

Issues a tracking number, files the grievance and follows up on a schedule. Cloud Tasks does the chasing.

07 · Safety

Emergency SOS

For domestic violence, abuse and immediate physical danger. Routes to the nearest helpline with location.

08 · Bridge

Document scanner

Snap a photo of an Aadhaar, ration card or notice. Vision API extracts and explains in the citizen's language.

09 · Reach

WhatsApp & SMS

For phones without data: SMS fallback. For phones with WhatsApp: a parallel low-bandwidth channel.

Act IV · Hardened

A civic service must
never leak its citizens.

Most "rural India" projects ship as a Streamlit demo. HaqSetu ships as a production service. Trivy on the container. Bandit and CodeQL on the code. TruffleHog on the history. Dependabot on the deps. Terraform on the infra. Nothing manual, nothing implicit.

Layer
Tool
What it stops
Container
Trivy
CRITICAL and HIGH CVEs in the Docker image. Build fails on regression.
Source
Bandit + CodeQL
Static analysis for Python vulnerabilities and semantic flaws on every PR.
History
TruffleHog
Scans every commit for leaked secrets. Push protection on the repo.
Dependencies
pip-audit + Dependabot
Weekly grouped updates by ecosystem. Security patches raised the moment they exist.
Runtime
Non-root container
Verified at build time. Process drops privileges. Health check enforced.
Edge
CSP + rate limit
Strict Content Security Policy. Per-IP rate limit with spoofing protection. SSRF guard on outbound.
Infra
Terraform + Cloud Build
Every environment reproducible from code. No hand-edited consoles.
Privacy
DPDPA-aligned
Citizen voice never persisted in logs. PII masked at the structlog boundary.

Act V · Proof

It already holds.

550+ tests, every commit

pytest with coverage threshold enforced in CI. The build refuses to merge below the bar. Async test paths covered.

Two CI pipelines, weekly schedule

The standard CI runs lint, tests, Bandit and pip-audit. A separate security pipeline runs Trivy, CodeQL, TruffleHog and dependency-review on every PR and weekly on schedule.

Cloud Build + Terraform from day one

cloudbuild.yaml drives the deploy. Terraform owns the infra. No ClickOps. Every environment recreated from a clean repo.

Twenty-five services on one bridge

Voice agent, scheme search, RTI generator, grievance tracker, SOS, document scanner, WhatsApp/SMS, autofix orchestrator, accessibility, compliance audit and more, all in one repo.

The Stack

Production from day one. Reachable from a 2G phone.

  • Python 3.11+
  • FastAPI
  • Pydantic v2
  • Cloud Speech-to-Text
  • Cloud Text-to-Speech
  • Cloud Translation
  • Cloud Vision
  • Vertex AI
  • Firestore
  • Cloud Tasks
  • Pub/Sub
  • Redis
  • Docker
  • Terraform
  • Cloud Build
  • structlog
  • Prometheus

A bridge is built once.
It serves for generations.

I build voice-first, multilingual, hardened civic AI for the India most software forgets. State governments, public-service agencies and legal aid foundations: this is the engineer to call.