How purnalokesh31-hub/earthmind-ai works
EarthMind PIOS is a municipal urban-intelligence and decision-support platform. Its documented workflow collects city data, reports, and evidence; analyzes and assesses risks; recommends actions; then leaves approval and tracking to human operators. The web application exposes command-center and domain workflows, while a Python API handles case and vision endpoints. The README documents broad domain coverage, simulations, and governance; sampled source confirms selected API, inference, scoring, and orchestration behavior. Many web routes and domain services were not sampled, so their internal links are not asserted.
Main entry points: orchestrator.py Case Analysis · page.tsx Command Center · main.py Python API Runtime · route.ts Human Governance
Components 22
Intake and Evidence
- Reports and Incidents
apps/web/app/api/v1/citizen/reports/route.ts - Evidence Analysis
apps/api/app/api/vision_v1.py - Case API
apps/api/app/api/cases.py
Intelligence and Risk
- Agent Orchestrator
apps/web/lib/server/ai-agents/agent-orchestrator.service.ts - AI Inference
apps/web/lib/server/ai/ai-inference.service.ts - Case Analysis
apps/api/app/workers/orchestrator.py - Risk Prediction
apps/api/app/engines/predictive.py - Spatial Analysis
apps/api/app/engines/spatial.py - Risk Scoring
packages/scoring-rules/scoring.py - Urban Domain Twin
apps/web/app/api/v1/digital-twin - Demo and Simulation
apps/web/app/api/v1/digital-twin/simulations/route.ts
Decision and Governance
- Decision Orchestration
apps/web/lib/server/services/city-decision-orchestrator.service.ts - Intervention Planning
apps/web/lib/server/services/city-intervention-orchestrator.service.ts - Human Governance
apps/web/app/api/v1/digital-twin/governance/evaluate/route.ts - Decision Workflows
apps/web/app/api/v1/digital-twin/decisions/route.ts
Operator Experience
- Command Center
apps/web/app/command-center/page.tsx - Citizen Reporting
apps/web/components/citizen/CitizenReportingModal.tsx - Web Application
apps/web/app/EarthMindApp.tsx
Runtime Platform
- Case Store
apps/api/app/core/db.py - Python API Runtime
apps/api/app/main.py
Other components
- Citizens
- City Operators
Connections 20
- Citizens → Citizen Reporting: submit reports
README.md - Citizen Reporting → Reports and Incidents: send reports
- City Operators → Command Center: monitor city
README.md - Command Center → Web Application: use interface
- Python API Runtime → Evidence Analysis: routes analysis
apps/api/app/main.py - Python API Runtime → Case API: routes cases
- Python API Runtime → Case Store: saves cases
apps/api/app/main.py - Case Analysis → Case Store: reads cases
apps/api/app/workers/orchestrator.py - Case Analysis → Risk Prediction: uses forecasts
apps/api/app/workers/orchestrator.py - Case Analysis → Spatial Analysis: uses geography
apps/api/app/workers/orchestrator.py - Case Analysis → Risk Scoring: scores cases
apps/api/app/workers/orchestrator.py - AI Inference → Evidence Analysis: analyzes images
- Agent Orchestrator → AI Inference: invokes inference
- Urban Domain Twin → Demo and Simulation: offers simulations
README.md - Decision Orchestration → Decision Workflows: serves decisions
- Decision Orchestration → Intervention Planning: frames actions
- Decision Workflows → Human Governance: requires review
README.md - City Operators → Human Governance: approve or reject
README.md - Human Governance → Command Center: tracks outcomes
- Urban Domain Twin → Command Center: provides domain views