CrisisGrid — Human-Approved GTM & Operations Agent Suite for Climate-Tech Founders

Inspiration

Early-stage founders building in climate resilience, civic tech, and disaster response face a brutal operational bottleneck: before they can launch a pilot, they lose 17+ hours per campaign scanning underserved districts, shortlisting NGO/institutional partners, modeling pilot feasibility, drafting outreach, and coordinating field operations across disconnected spreadsheets.

While generative AI promises speed, unverified AI hallucinations in high-stakes sectors are fatal—an AI agent that fabricates partner funding commitments, invents district casualty figures, or drops emergency helpline numbers destroys founder credibility and puts lives at risk. We built CrisisGrid to give climate-tech and crisis-response founders back their time to think—pairing deterministic mathematical optimization and guarded free-tier LLMs with strict, API-enforced human approval gates.

What It Does

1. Founder & Partnership Studio (/founder) — GTM & Pilot Acceleration

Built directly for early-stage founders launching regional pilots, CrisisGrid automates six repetitive go-to-market and partnership discovery steps in under 7 seconds, stopping at a mandatory human review gate before any outreach is sent:

Stage Automated Agent Task Human Checkpoint / Guardrail
1. Market & Coverage Gap Scan Analyzes Census demographics and facility coverage to identify high-need, underserved districts. Founder reviews geographic priority and target corridors.
2. Partner Shortlisting Filters relief organizations and operational partners matched to the target hazard and region. Flags static catalog entries requiring manual verification.
3. Partner Qualification Evaluates organizational fit, regional presence, and operational readiness. Highlights unverified partner capacity assumptions.
4. Feasibility & Cost Model Generates baseline pilot resource and cost projections using deterministic formulas. Founder audits financial and capacity assumptions before budgeting.
5. 6-Week Pilot Plan Structures a phased 6-week deployment roadmap from onboarding to field validation. Editable milestones tailored by the founder.
6. Guarded Outreach Draft Uses Google Gemini 2.5 Flash / Ollama Qwen 2.5 7B to draft partner outreach emails. Programmatically rejected if the LLM invents government endorsements, funding guarantees, or unverified claims; founder edits and sends manually.

2. Five-Step Human-Approved Operational & Pilot Execution (/dashboard & /field)

When a founder or operations lead runs a live pilot or emergency simulation, CrisisGrid coordinates field execution through five deterministic + AI-assisted steps:

Step Name Core Function Human Gate / Guardrail
1 Assess Identifies districts in the hazard area, flags coverage gaps (no shelter/cooling center), and filters stale resource records (>24 hrs). Stale records (>24h) are strictly excluded from planning.
2 Plan Uses a Google OR-Tools (CBC) optimizer to match verified resources to the neediest districts. Coordinator must explicitly approve, trim, or reject before missions exist.
3 Field Work Offline-capable mobile interface (Accept → On my way → Arrived) for field teams. Requires secret check-in code + GPS proximity (1.5 km fixed / 5 km mobile) + notes.
4 Report Compiles a Situation Report (SitRep) from verified, flagged, and uncovered database records. LLM summary is rejected if it invents numbers not present in computed facts.
5 Public Advisory Delivers hazard-specific safety advice in English, Urdu, Hindi, and regional languages. Held in draft until a coordinator releases it; rejected if emergency numbers (1122, 115, 112) are dropped.

3. Real-Time Team Workspace, AI Email Agent & Live AQI

  • AI Email Agent: Generates editable founder/team drafts via Gemini or local Ollama from a short brief—explicitly inserting [placeholders] for missing information rather than fabricating facts, and returning a clear setup error rather than faking a response if no LLM is configured.
  • Live Synchronization: Powered by Server-Sent Events (SSE) locally (and 5-second polling on Vercel) for instant updates across tasks, messages, and roles—with live "online now" presence derived strictly from open connections.
  • Workspace Modules:
    • Dashboard & Tasks: Live view of deadlines, private to-dos, and full task lifecycle (Pending → In progress → Under review → Completed) where assignees cannot approve their own work.
    • Chat & People: 1-on-1 direct messaging with read receipts, role directory, and instant global session revocation upon account deactivation.
  • Live Air Quality & Weather: Real-time US EPA AQI readings for 17 major cities and every district in an incident area via Open-Meteo and WAQI, labeled with station distance and reading freshness.

4. Role-Based Access Matrix

Demo Username Role Permissions & Capabilities
founder Founder Runs the 6-stage Founder & Partnership Studio, assigns team tasks, manages user roles, and deactivates accounts (instant global sign-out).
coordinator Coordinator Runs the 5-step operational response, approves/trims/rejects plans & advisories, assigns tasks, views check-in codes.
field Field Responder Accepts missions on mobile, updates transit status, submits GPS + check-in code evidence.
auditor Auditor Read-only oversight across all reports, agent telemetry, tasks, and the tamper-proof activity log.
(Self-signup /signup) Team Member Accesses dashboard, tasks, to-do, chat, people, and AI email agent (no incident/mission access until promoted).

How We Built It

Architecture Overview

(Note: Upload your exported architecture PNG/SVG to the Devpost Image Gallery to display alongside this breakdown.)

┌─────────────────────────────────────────────────────────────────────────┐
│                        apps/web (Next.js / TypeScript)                  │
│  Founder Studio │ 5-Step Ops UI │ Offline Field App │ AI Email & Chat   │
└────────────────────────────────────┬────────────────────────────────────┘
                                     │ HTTPS / SSE (5s Polling on Vercel)
┌────────────────────────────────────▼────────────────────────────────────┐
│                     apps/api (Express / SQLite + Turso)                 │
│  Session Auth & RBAC │ Human Approval Gates │ Append-Only Audit Log     │
└──────────────────┬───────────────────────────────────┬──────────────────┘
                   │ Read-Only DB Access               │ External Public APIs
┌──────────────────▼──────────────────┐   ┌────────────▼──────────────────┐
│  services/agents (FastAPI / Python) │   │ Open-Meteo (Weather)          │
│  • LangGraph Workflow Orchestrator  │   │ WAQI (Live AQI / PM2.5)       │
│  • Google OR-Tools (CBC) Solver     │   │ Leaflet / OSM / CARTO Maps    │
│  • Gemini 2.5 Flash / Ollama Qwen   │   └───────────────────────────────┘
│  • Deterministic Output Validators  │
└─────────────────────────────────────┘

Monorepo Stack & Responsibilities

  • Languages: TypeScript (83.4%), Python (15.0%), Other (1.6%)
Service / Path Stack Public Path Responsibilities
apps/web Next.js, TypeScript / Sign-in/up, Founder Studio, 5-step response UI, offline-capable field app, workspace tools.
apps/api Express, SQLite / Turso /api/* Session auth, RBAC, approval gates, GPS/code evidence checks, tasks, chat, SSE events, append-only audit log.
services/agents FastAPI, LangGraph, OR-Tools (CBC), Gemini / Ollama Internal (AGENTS_URL) Read-only analytical engine: GIS distance math, OR-Tools optimization, partner qualification, SitReps, translations, email drafting.
config/ & db/ JSON, SQL Bundled Shared hazard rules (hazards.json: coverage distances, dispatch limits, 24h stale threshold), migrations, seed data.

Responsible AI & Guardrail Matrix

Workflow Step Engine Used Validation & Safety Guardrail
Founder Partner & Cost Modeling Deterministic rules + Census/catalog data Flags unverified partner capacities; separates static catalog data from live metrics.
Founder Outreach & Email Agent Live Gemini 2.5 Flash / Ollama Qwen 2.5 7B Checked for fabricated funding/endorsement claims; uses [placeholders]; never fakes templates on API failure.
Hazard, GIS & Freshness Deterministic rules & Haversine math Hard 24-hour staleness cutoff; distance limits and zero double-booking.
Resource Allocation Google OR-Tools (CBC) solver Mathematical optimization only; requires Coordinator approval gate before missions exist.
Assessment & SitRep Summaries Gemini 2.5 Flash / Ollama Qwen 2.5 7B Programmatically rejected if the LLM adds any number not supplied in computed facts.
Public Advisories Fixed templates (EN/UR/HI) + AI translation Translations are rejected if they drop emergency numbers (1122, 115, 112).

Data Sources

Data Domain Source Notes
Pakistan Districts & Populations Pakistan Bureau of Statistics (Census 2023) Real district names, provinces, and populations.
India Districts & Populations Census of India (2011) Real district names, states, and populations.
Coordinates & Vulnerability Approximate HQ coords + Synthetic Index (0–10) Used for GIS distance math and priority ranking.
Facilities & Incidents Synthetic drill datasets (55 records) Modelled on the 2015 Karachi heatwave, 2022 Sindh floods, and Cyclone Fani (2019).
Weather & Air Quality Open-Meteo & World Air Quality Index (aqicn.org) Live weather and US EPA AQI scale from nearest monitoring stations.

Challenges We Ran Into

  • Preventing AI Hallucinations in High-Stakes Workflows: LLMs naturally embellish numbers, invent partner commitments, or alter emergency instructions. We isolated all math and optimization inside Python rules and Google OR-Tools, then built programmatic output validators that automatically reject LLM outputs introducing unprovided numbers, fabricated endorsements, or missing emergency hotlines.
  • Bridging Real-Time SSE with Serverless Vercel Deployment: Locally, Express streams instant state changes over persistent Server-Sent Events (SSE) and tracks live presence via open connections. Deploying onto Vercel's stateless functions required integrating Turso (libSQL) with a synced local replica for fast reads and implementing a seamless 5-second polling fallback.
  • Monorepo Workspace Packaging on Vercel: Deploying a pnpm workspace alongside an internal FastAPI service required configuring vercel.json so Express installs its dependencies directly inside apps/api without broken workspace symlinks, while securely routing internal calls via AGENTS_URL.

Accomplishments That We're Proud Of

  • API-Enforced Security & Human Approval Gates:
    • Missions cannot exist in the database without coordinator approval; each proposal can be decided once, and rejections require a written reason.
    • Check-in codes are never transmitted to field responder clients, and assignees cannot mark their own tasks completed.
    • Database triggers enforce an append-only audit log, blocking all UPDATE and DELETE operations.
    • Salted scrypt password hashes, hashed session tokens, rate-limited auth, and XSS-safe plain-text map popups.
  • Zero-Fallback Integrity on the AI Email Agent: If no LLM is configured, users receive a clear setup error rather than a canned template disguised as AI.
  • 152 Automated Tests Across All Layers:
Test Command Suite Count Coverage Scope
pnpm test:api API Tests 52 Auth, sign-up, RBAC, approval gates, evidence checks, tasks, chat, SSE, polling, audit log, AQI.
pnpm test:web Web Tests 45 Founder Studio, response steps, approval UI, offline queue, sign-in/up, to-do, AI email states, AQI.
pnpm test:agents Agent Tests 28 OR-Tools allocation limits, GIS coverage, AI output validators, SitRep, advisories, Turso reader.
pnpm test:e2e Playwright E2E 27 Desktop & mobile role journeys, zero console errors, no sideways scroll, live two-user workflows.

What We Learned

  • Trust in High-Stakes Founder & Crisis Tech Comes from Restraint: Founders and emergency coordinators do not want autonomous black-box AI; they want transparent math, clear labels distinguishing rules from AI, and total veto power before anything reaches external partners, field teams, or the public.
  • Data Freshness Is as Critical as Data Accuracy: In fast-moving operations, shelter or partner capacity data from two days ago is actively dangerous. Enforcing a strict 24-hour staleness threshold directly in the allocation engine keeps plans grounded in reality.

What's Next for CrisisGrid

  • QR Code Check-Ins & Push Notifications: Replacing manual check-in code entry with fast QR scanning and native mobile alerts for field responders in low-connectivity environments.
  • Native-Speaker Linguistic Verification & Voice Alerts: Partnering with regional disaster authorities and native speakers to audit regional translations (Sindhi, Odia, Punjabi, Bengali) and add audio advisories for low-literacy communities.
  • Live CAD, IoT & Multi-Node Scaling: Connecting CrisisGrid to real municipal Computer-Aided Dispatch (CAD) feeds and river/weather telemetry, and activating the docker-compose.yml upgrade path (PostgreSQL/PostGIS + Redis pub/sub) for multi-instance regional deployments.

AI Disclosure Statement — CrisisGrid (v0.2.0)

Principle: Generative AI in CrisisGrid is limited to short operational summaries, regional-language translations, partner outreach drafts, and standalone email drafting. Hazard scoring, spatial calculations, data freshness checks, feasibility formulas, and resource allocation are entirely deterministic and do not rely on AI-generated decisions.

1. Runtime Models, Providers, and Tools

  • Google Gemini 2.5 Flash (Free API Tier): Used at runtime for impact summaries, SitRep summaries, regional-language advisory translations, Founder Studio partner outreach drafts, and standalone email drafting.
  • Ollama Qwen 2.5 7B (Open-Weight / Local): Zero-cost, self-hosted open-weight alternative to Gemini for all five AI features. Runs locally without external data transmission.
  • Google OR-Tools CBC (Open-Source): Deterministic mixed-integer linear programming solver for resource allocation and dispatch planning.
  • LangGraph (Open-Source): Orchestrates four bounded workflows — analysis, allocation, verification, and founder operations.
  • FastAPI and Pydantic (Open-Source): Backend execution, schema validation, API handling, and programmatic output enforcement.
  • Internal GIS and Freshness Logic: Calculates Haversine distances, facility coverage, district risk, and 24-hour data freshness using deterministic code.
  • Open-Meteo (Free Public API): Provides live weather and forecast data.
  • WAQI (Free API Tier): Provides live air-quality readings (US EPA AQI, PM2.5, PM10).
  • Leaflet, OpenStreetMap, and CARTO (Open-Source / Free): Used for interactive mapping and visualization.

2. Runtime AI Usage and Token Consumption

Workflow AI Calls Approx. Total Tokens AI Latency
Founder partner workflow (/founder) 1 336–342 5.80–6.57 sec
AI email drafting 1 432–591 Live API call
Incident assessment 1 353–545 2.37–7.85 sec
Resource allocation (OR-Tools) 0 0 None
SitRep generation 1 223–256 1.85–3.20 sec
Advisory generation 0–1 0–335 1 ms–10.98 sec
  • Founder & Partnership Studio run: Uses 1 AI call (~336–342 tokens) for outreach drafting; market scan, shortlisting, qualification, cost modeling, and pilot planning run deterministically in <20 ms.
  • Complete incident response cycle: Uses approximately 3 AI calls and 910–1,160 total tokens across assessment, SitRep, and advisory translation.

3. Safety and Reliability Controls

  • AI-generated numerical claims in assessments and SitReps are programmatically validated against computed database facts and rejected if unverified numbers appear.
  • Emergency helpline numbers (1122, 115, 112) are validated during regional translations; translations dropping required digits are rejected.
  • AI-generated founder partner outreach is checked for unsupported promises or fabricated claims of government approval, endorsement, or funding.
  • Failed or rejected AI outputs fall back to clearly labeled deterministic responses ("Rules (AI not used)") where supported.
  • The standalone AI email agent returns explicit errors rather than pretending a deterministic template is AI-generated.
  • All workflows enforce bounded execution paths, single retries, and server-side rate limits.

4. Equal Access & Cost Compliance

  • 100% Free Runtime: Gemini uses the free API tier ($0 spend), and Ollama with Qwen 2.5 7B provides a completely offline, open-weight local runtime so judges and founders can run CrisisGrid at zero cost without any paid subscriptions or credits.
  • All optimization, orchestration, mapping, weather, and air-quality dependencies use open-source libraries or free public/tier APIs.

5. Development & AI-Assisted Building Disclosure

In compliance with the Equal Access AI Policy, AI coding and productivity assistants were used during software development and documentation (never as paid runtime dependencies):

  • AI Coding & Documentation Assistants (Google Gemini / IDE Code Assistants): Used for boilerplate scaffolding, unit/E2E test suite generation, TypeScript/Python debugging, and documentation structuring. All system architecture, deterministic OR-Tools constraints, database RBAC/approval triggers, and output validation guardrails were designed, reviewed, and verified by the team.

Time-Saved Report — CrisisGrid (v0.2.0)

CrisisGrid gives early-stage founders and operations leads back hours of repetitive coordination work by automating market/coverage scanning, partner qualification, feasibility modeling, resource optimization, and report drafting—completing computational steps in seconds while keeping final decisions and external actions with human operators.

1. Founder & Partnership Studio (/founder)

CrisisGrid automates six stages of partner discovery and pilot planning. Manual baselines reflect standard founder workflow benchmarks defined in the system; automated runtimes are measured directly from execution telemetry.

Workflow Stage Manual Baseline Automated Runtime
Market & coverage gap scan 4 hours 14–19 ms
Partner shortlisting 3 hours 1 ms
Partner qualification 4 hours 1 ms
Feasibility & cost model 4 hours 1 ms
6-week pilot plan 2 hours 1 ms
Partner outreach draft 45 minutes 5.8–6.6 seconds
Mandatory Human Review — 20 minutes

Total per Founder Partner Campaign:

  • Manual baseline: 17 hours 45 minutes
  • Automated processing: ~6.6 seconds
  • Required human review: 20 minutes
  • Total with CrisisGrid: ~20.1 minutes
  • Estimated time saved: 17 hours 25 minutes (~98% reduction)

2. Emergency & Pilot Operations Coordination (/dashboard & /field)

CrisisGrid accelerates the operational preparation cycle across hazard assessment, resource allocation, SitRep compilation, and multilingual public advisories.

Workflow Stage Manual Baseline CrisisGrid Compute
Hazard & gap assessment 20–40 min 3–9 sec
Allocation & mission planning 20–40 min 0.3 sec
SitRep compilation 10–20 min 2–3 sec
Multilingual public advisory 10–25 min 1 ms–11 sec

Total Operational Preparation Cycle:

  • Estimated manual baseline: 60–125 minutes
  • Automated processing: under 25 seconds
  • Required human approvals: ~3–5 minutes
  • Total with CrisisGrid: ~3.5–5.5 minutes
  • Estimated time saved: 55–119 minutes (~90%+ reduction)

3. Additional Operational Value

  • Eliminates stale-data rework: Facility records older than 24 hours expire automatically from active planning, saving coordinators from manually calling outdated shelters.
  • Zero resource double-booking: Database transactions and OR-Tools constraints prevent conflicting assignments across concurrent operators.
  • Instant auditability: Token usage, execution latency, assumptions, and human approvals are logged automatically.

Methodology Note: Automated execution times are measured directly from system telemetry, while manual baselines are engineering workflow estimates and code-defined benchmarks rather than stopwatch-tested clinical trials.


Human Judgment Report — CrisisGrid (v0.2.0)

Design Principle: AI does the analysis. People make the call.

CrisisGrid is architected so AI agents cannot independently commit founder budgets, send external partner emails, dispatch field teams, release public safety alerts, or mark tasks complete. Every workflow hits an explicit human checkpoint before any real-world or external action occurs.

1. Human Approval Checkpoints

  • Founder Outreach & Pilot Commitments (/founder): AI prepares partner shortlists, feasibility estimates, pilot plans, and outreach drafts. The Founder must verify partner readiness, audit cost assumptions, edit the draft, and manually send correspondence.
  • Dispatch & Resource Allocation (/dashboard): Deterministic solvers recommend resource assignments, but a Coordinator must explicitly approve, trim, or reject (with a written reason) before missions are created in the database.
  • Public Safety Advisories: AI drafts and translates advisories, but a Coordinator must inspect wording, emergency numbers, and timing before releasing them.
  • Field Mission Verification (/field): Responders submit GPS coordinates, secret check-in codes, and field notes. Missions with GPS anomalies or missing codes are flagged for Coordinator review rather than auto-completed.
  • Team Task Verification: Assignees cannot approve their own tasks as completed; a Coordinator or Founder must review submitted deliverables.

2. Technical Safeguards Enforcing Human Control

  • Read-Only Agent Microservice: services/agents connects to the database in read-only mode—it is architecturally incapable of writing missions, approvals, or outbound messages.
  • Server-Side RBAC: Roles (founder, coordinator, field, auditor) are enforced via authenticated server sessions, never client-side flags.
  • Transactional Approval Gates: Database transactions prevent race conditions or duplicate dispatches when reviewing recommendations.
  • Append-Only Audit Trail: SQL triggers block UPDATE and DELETE on audit records, giving auditor accounts tamper-proof oversight.

3. Division of Responsibility: Agent vs. Human

Operational Risk What the Agent / Solver Does What the Human Decides & Why
Unverified partner capacity or terms Ranks candidate NGOs and estimates baseline pilot costs. Founder verifies real-world partner capacity, pricing, and legal terms before outreach.
Road closures, flooding, or local security Computes Haversine distances and optimal resource matching. Coordinator confirms physical route safety and local security before approving dispatch.
Competing district priorities Scores vulnerability and coverage gaps from static data. Coordinator trims or reallocates scarce resources based on live ground reports.
Nuance in public safety alerts Translates fixed safety templates into regional languages. Coordinator / Native Reviewer verifies cultural tone, helplines, and release timing.
Incomplete field evidence Flags GPS distance mismatches or missing check-in codes. Coordinator investigates flagged check-ins and decides whether to confirm or reopen.

Responsible AI Report — CrisisGrid (v0.2.0)

This report documents data provenance, privacy and security controls, known limitations, bias risks, and failure-handling safeguards across CrisisGrid.

1. Data Used

CrisisGrid explicitly separates real public datasets, synthetic demonstration records, and static reference catalogs:

  • District Demographics & Boundaries: Pakistan districts use Census 2023 data (Pakistan Bureau of Statistics); Indian districts use Census of India 2011 data (latest published district-level census).
  • Weather & Air Quality: Live public forecasts from Open-Meteo and live US EPA AQI / PM2.5 / PM10 readings from WAQI, annotated with station distance and reading age.
  • Incidents, Facilities & Vulnerability Scores: Seeded disaster scenarios (modeled on the 2015 Karachi heatwave, 2022 Sindh floods, and 2019 Cyclone Fani), 55 synthetic facility/resource records, and synthetic 0–10 vulnerability scores—explicitly labeled as simulation/drill data.
  • Partner Catalog: A static list of established relief organizations marked for manual founder verification.

2. Privacy & Security

  • Passwords use salted scrypt hashing; session tokens are hashed server-side with a 12-hour default expiry and instant revocation upon user deactivation.
  • Personal to-dos, AI email drafts, and direct messages are strictly scoped to their owners/participants.
  • External weather and AQI calls transmit only district/city coordinates—never personal user data.
  • Organizations requiring strict data residency can run Qwen 2.5 7B locally via Ollama so zero prompts leave their infrastructure.

3. Known Limitations

  • Simulated Incident & Facility Feeds: CrisisGrid currently uses seeded drill scenarios rather than live government CAP, NDMA, or IMD alert feeds.
  • Straight-Line Distance Math: Haversine distance calculations do not account for road networks, traffic, bridge outages, or floodwater blockages.
  • Air-Quality Scale Differences: US EPA AQI values displayed from WAQI differ numerically from India's national NAQI standard.
  • Prototype Infrastructure Constraints: Designed as an accessible hackathon deployment without enterprise SSO, QR hardware scanning, or distributed Redis pub/sub (Vercel uses 5-second polling fallback).

4. Bias & Fairness Risks

  • Partner Visibility Bias: The static partner catalog favors large, well-known NGOs and may underrepresent grassroots community groups, local trusts, and women's collectives.
  • Demographic Data Asymmetry: Pakistan district figures reflect 2023 census data while Indian district figures reflect 2011 census data, creating uneven demographic recency.
  • Geographic & Sensor Coverage Gaps: Seeded corridors cover 22 priority districts, and rural districts often have fewer nearby WAQI monitoring stations (mitigated by displaying station distance warnings).
  • Low-Resource Language Quality: English, Urdu, and Hindi use vetted fixed templates, whereas regional translations (e.g., Sindhi, Odia) rely on zero-shot LLM translation and require native-speaker verification before live public deployment.

5. Failure Cases & Safeguards

  • Hallucinated Numbers or Commitments: Programmatic validators reject SitRep/assessment outputs containing unprovided numbers and reject Founder outreach drafts containing fabricated funding or endorsement claims (observed in testing and safely caught by fallback).
  • Dropped Emergency Helplines: Regional advisory translations are rejected if required helpline digits (1122, 115, 112) are missing.
  • LLM Timeout, Quota Limit, or Missing Key: Workflows retry once and degrade gracefully to clearly labeled deterministic outputs ("Rules (AI not used)"), while the standalone AI email agent surfaces an explicit configuration error rather than masquerading a static template as AI.
  • Stale or Overbooked Resources: The OR-Tools solver automatically excludes unverified, busy, out-of-range, or >24-hour stale facilities, returning partial or zero allocations rather than forcing unsafe dispatches.
  • Concurrent Approval Race Conditions: SQLite/Turso transactions prevent two coordinators from approving the same proposal twice.

Built With

Share this project:

Updates

Submission history