How rupeshhh007/ibm-flight works
AeroGuard is a simulation-only, auditable aviation-emergency demo. Operators start and advance synthetic scenarios, submit acknowledgements and fictional ATC decisions, then inspect flight, Guardian, Sentinel, Vision, scenario, and audit views. The backend orchestrator coordinates observations, telemetry, incident evaluation, authorization, symbolic simulator actions, and ordered event persistence; the browser polls REST snapshots and event history. Edges reflect README-documented flows and sampled wiring; unsampled subsystems are included where README documents them, without asserting unverified internal calls.
Main entry points: orchestrator.py Command orchestrator · routes.py REST routes · useAeroGuard.tsx Client state and polling · App.tsx Dashboard shell
Components 23
Simulation backend
- REST routes
backend/app/api/routes.py - Command orchestrator
backend/app/core/orchestrator.py - Event and API contracts
backend/app/contracts/models.py - SQLite event store
backend/app/core/event_store.py - Committed event publisher
backend/app/core/event_bus.py
Safety decisions
- Guardian assessment
backend/app/modules/guardian/agent.py - Guardian policy
backend/app/modules/guardian/policy.py - Sentinel authorization
backend/app/modules/sentinel/deterministic.py - Synthetic aircraft simulator
backend/app/modules/simulator/mock.py
Observation and scenarios
- Vision observation adapter
backend/app/modules/vision/adapter.py - Uncertainty-aware evidence
backend/app/modules/vision/evidence.py - Local camera sources
backend/app/modules/vision/sources.py - Scenario catalogue
backend/app/scenarios/catalog.py - Scenario runner
backend/app/scenarios/runner.py
Operator dashboard
- Dashboard shell
frontend/src/App.tsx - Client state and polling
frontend/src/hooks/useAeroGuard.tsx - REST client
frontend/src/api/client.ts - Event history client
frontend/src/api/events.ts - Six dashboard views
frontend/src/pages - Event-derived insights
frontend/src/hooks/selectors.ts - Audit timeline
frontend/src/components/AuditTimeline.tsx
Other components
- Operator
- Fictional ATC
Connections 25
- Operator → Dashboard shell: operates
- Dashboard shell → Six dashboard views: renders
frontend/src/App.tsx - Dashboard shell → Client state and polling: uses state
frontend/src/App.tsx - Client state and polling → REST client: fetches state
frontend/src/hooks/useAeroGuard.tsx - Client state and polling → Event history client: polls history
frontend/src/hooks/useAeroGuard.tsx - Client state and polling → REST routes: sends REST commands
- REST routes → Command orchestrator: dispatches commands
backend/app/api/routes.py - REST routes → SQLite event store: reads history
- Command orchestrator → SQLite event store: persists events
- Command orchestrator → Committed event publisher: publishes events
- Command orchestrator → Guardian assessment: evaluates evidence
- Guardian assessment → Guardian policy: applies policy
backend/app/modules/guardian/agent.py - Command orchestrator → Sentinel authorization: requests authorization
- Command orchestrator → Synthetic aircraft simulator: starts and acts
backend/app/core/orchestrator.py - Command orchestrator → Vision observation adapter: requests observations
- Vision observation adapter → Uncertainty-aware evidence: builds evidence
- Uncertainty-aware evidence → Local camera sources: uses sources
backend/app/modules/vision/sources.py - Command orchestrator → Scenario catalogue: loads scenarios
backend/app/core/orchestrator.py - Command orchestrator → Scenario runner: advances scenarios
backend/app/core/orchestrator.py - Scenario runner → Scenario catalogue: reads definitions
backend/app/scenarios/runner.py - Fictional ATC → REST routes: submits decisions
- Six dashboard views → Event-derived insights: derives summaries
frontend/src/pages/FlightDeckPage.tsx - Event-derived insights → Event history client: interprets events
frontend/src/hooks/selectors.ts - Six dashboard views → Audit timeline: shows audit
- Event and API contracts → REST routes: defines payloads
backend/app/api/routes.py