How shandiash/systemresearch works
TUGON AI is a municipal incident-reporting and verification application for Cebu City. Citizens submit a narrative, photo, and location through the portal; the FastAPI application offers preview analysis, verifies location evidence, and manages report records. Reports carry classification, office assignment, urgency, and verification information for command-center review and optional sector notification. The README also documents document-requirement advisories and human oversight. Edges reflect shown calls, indexed module references, or README descriptions; unsampled dashboard and lifecycle details are represented conservatively.
Main entry points: main.py FastAPI routes · app.js Reporting interface · database.py SQL database · notifier.py Sector notifier
Components 15
Citizen portal
- Reporting interface
static/js/app.js - Portal pages
templates - FastAPI routes
app/main.py
Analysis and verification
- Multimodal classifier
app/classifier.py - GPS and EXIF verifier
app/verifier.py - Sectors and offices
app/config.py
Reports and persistence
- Accounts and roles
app/models.py - Incident records
app/models.py - Dispatch log
app/models.py - SQL database
app/database.py
Municipal oversight
- Sector notifier
app/notifier.py - Command dashboard
templates/dashboard.html - Dashboard behavior
static/js/dashboard.js
Other components
- Citizen
- Partner government offices
Connections 17
- Citizen → Reporting interface: submits report
static/js/app.js - Reporting interface → FastAPI routes: requests preview
static/js/app.js - Reporting interface → FastAPI routes: submits report
static/js/app.js - FastAPI routes → Portal pages: renders portal
app/main.py - FastAPI routes → Command dashboard: renders dashboard
app/main.py - FastAPI routes → Multimodal classifier: uses classification
app/main.py - FastAPI routes → GPS and EXIF verifier: checks location
app/main.py - FastAPI routes → Incident records: queries reports
app/main.py - FastAPI routes → Accounts and roles: manages accounts
app/main.py - FastAPI routes → Sector notifier: triggers dispatch
app/main.py - FastAPI routes → SQL database: gets sessions
app/main.py - SQL database → Incident records: maps tables
app/database.py - SQL database → Accounts and roles: maps tables
app/database.py - Sector notifier → Dispatch log: records alert
app/notifier.py - Sector notifier → Partner government offices: emails office
app/notifier.py - Multimodal classifier → Sectors and offices: uses office data
app/classifier.py - Command dashboard → Dashboard behavior: uses behavior