Skip to content

ShowcasedPath twoCommunity & civic

Pani Kaisa Hai?

Lets residents in Indian cities report water contamination signs, with health workers confirming before any neighborhood warning.

by Reet Singh

Automated tests covering risk scoring, case rules, daily tick and the workflow definition
33
Bugs in the report-to-alert path found in a pre-submission audit
6
Wrong IS 10500 citations fixed with a three-document content patch
2

What it does

Residents report yellow water. A health worker confirms before the map turns red.

A resident files a four-step report in under a minute: where they are, what they noticed and any readings. Reports are scored per neighborhood against India's IS 10500 drinking water standard, and each area appears as a golgappa on a map.

Rising complaints turn an area soggy automatically. Only a named health worker can confirm contamination, and every red alert shows who confirmed it, why, and what to do in English and Hindi.

The problem

Early signs of bad water stay scattered until a neighborhood falls sick.

Sewage smells, discolored water and several children sick in one lane are early warnings of contaminated supply. They tend to stay in separate WhatsApp groups, so nobody adds them up in time. An automated alarm on its own is risky too, since a false warning can cause panic and a missed one can cause illness.

What they built

Append-only reports kept apart from human decisions.

9 document types; demo uses sample data for Indore.

  • report

    One resident's observation, append-only; corrections arrive as new reports.

  • waterCase

    Reports grouped for one area, with the case's verification status.

  • alert

    A confirmed warning, which requires the verifier's name and a written reason.

  • safetyLimit

    An IS 10500 threshold with its clause cited, editable as content.

  • riskSettings

    The scoring rules used to turn reports into area risk.

  • waterSource

    A tap, borewell or tanker source and the areas it serves.

The stack

Studio, a Dashboard control room and a scheduled Function.

  • Content Lake
  • Sanity Studio
  • App SDK
  • Sanity Functions
  • Sanity Workflows
  • next-sanity live
  • Next.js
  • TypeScript
  • Leaflet
  • OpenStreetMap
  • Vercel
  • Murf
  • Claude Code

The hard part

Software can raise a case to needs verification, but only a person can confirm it.

The verification stages are written as a workflow definition in which the AI check is a system actor that stops at needs verification. Confirm and dismiss are gated to a verifier role, and the same human-only rule runs in shared case code with direct tests.

Confirming writes the decision, the alert and the area's new state in one live-edit transaction guarded by the case revision, so a case cannot be confirmed twice. Safety limits live as content, so a wrong citation is a Studio fix.

Open the golgappa map ↗

More from path two

See the full showcase