# SABOOT > SABOOT ("proof") is a public-space accountability web app for Maharashtra, India. Residents report unsafe infrastructure (dead streetlights, broken footpaths, unlit underpasses, harassment hotspots), departments repair them and upload evidence, and a complaint becomes "Verified Fixed" only after two independent community members confirm the repair. Built for Pune Hacks by Nerds Room, problem statement PS01 SafeRoute (women, safety and public spaces). - Live app: https://saboot-chi.vercel.app - Source code: https://github.com/Atharv-052007/saboot - Demo login: https://saboot-chi.vercel.app/login (demo password `demo1234`) ## Problem Civic complaints are often marked "resolved" by authorities without any proof the repair happened. Unsafe public spaces disproportionately affect women's mobility and safety. ## Solution workflow 1. Report: a resident pins the exact location on a Maharashtra-wide map (Leaflet + OpenStreetMap; pins outside Maharashtra are rejected) and attaches a photo. 2. Moderate: an admin or the responsible department classifies it: Genuine, Duplicate, Insufficient evidence, Rejected, False/misleading or Spam. 3. Repair: the department accepts, works on it, and uploads an after-repair photo. 4. Photo integrity checks: exact duplicate (SHA-256 on the server), visual similarity (perceptual hash), capture date (EXIF vs report date). 5. Independent verification: any signed-in community member except the reporter and the repairing authority can vote once. 2 x Fixed = Verified Fixed; 2 x Not fixed = Closure Not Verified; conflicting = Disputed; a failed photo check prevents Verified Fixed. 6. Accountability: disputed-closure ledger, escalations, corridor comparison and night-walk audits. ## Fake report prevention - The system never decides alone that a report is fake. Automated signals (many reports in 30 minutes, copy-pasted text, reused photos, nearby duplicates) only flag reports for human review. - Only an admin can confirm a report as False/misleading or Spam, and must record the evidence. Unresolved, unclear, disputed or duplicate reports are never treated as fake. - Progressive, configurable penalties: 1st offence warning, 2nd 7-day suspension, 3rd 30-day, 4th 90-day, 5th permanent-suspension review. - During suspension a user cannot report, verify, earn XP or redeem rewards, but can sign in, view history and appeal. Expiry is automatic using server time. - XP from a confirmed fake is reversed in the ledger. An approved appeal overturns the offence, lifts the suspension and restores XP. ## Community rewards - XP is awarded only for verified activity, via an append-only ledger with unique event keys: +50 genuine complaint, +20 accepted photo/location evidence, +15 verification (same for Fixed and Not fixed), +10 helpful explanation, +30 when your complaint is verified fixed, +15 accepted disputed-case evidence. - Levels: Observer 0, Reporter 100, Guardian 300, Protector 700, Community Champion 1500, Elite Guardian 3000, Super Guardian 5000. - Milestone rewards (digital badge, printable certificate, merchandise, sponsored vouchers) with an admin-approved redemption workflow and monthly community champions. ## Security - All rules are enforced in Convex server mutations using the authenticated identity, not the frontend. - Server-assigned roles (community, authority, admin), rate limiting, an append-only audit log, one vote per user, safe handling of simultaneous votes. - Demo accounts (public password) are isolated from real data. ## Technology React 18, TypeScript, Vite, Tailwind CSS, React Router; Convex (realtime database, server functions, file storage, cron jobs, Convex Auth); Leaflet, OpenStreetMap, Photon and Nominatim; hosted on Vercel and Convex Cloud.