How alouakhalid/trustline works
TRUSTLINE is an offline-resilient space-health decision-support system and astronaut digital-twin platform. Its principal workflow runs from simulated or wearable telemetry through sensor-quality screening and specialized health/risk assessment, then presents assessments and telemetry to crew or medical users; mission data can sync when connectivity allows. The graph also includes document ingestion, hybrid model routing, the frontend, and persistence. Relationships for unsampled subsystems are included only where the README or source index supports them; several internal agent and UI details are not shown in the excerpts.
Main entry points: agent.py Personal Health · worker.py Sync Worker · workflow Supervisor Workflow · app.py Backend API
Components 26
Telemetry and Documents
- Telemetry Simulator
data-engineering/simulator/scenarios/engine.py - Telemetry Bridge
data-engineering/simulator/ingestion_bridge.py - Document Ingestion
ai-engine/agents/personal_health/services/document_ingestion_service.py - Medical OCR
ai-engine/ocr/extractor.py
Medical Intelligence
- Signal Quality
ai-engine/agents/sensor_quality/core/quality_engine.py - Quality Validation
ai-engine/agents/sensor_quality/validation/validator_engine.py - Signal Schemas
ai-engine/agents/sensor_quality/schemas/signal_schema.py - Supervisor Workflow
ai-engine/agents/supervisor/workflow - Personal Health
ai-engine/agents/personal_health/agent/agent.py - Health Baselines
ai-engine/agents/personal_health/baseline - Risk Assessment
ai-engine/agents/risk_assessment/services/risk_engine.py - Risk Evidence and Rules
ai-engine/agents/risk_assessment/schemas/evidence.py - Medical RAG
ai-engine/agents/personal_health/rag/service.py
Hybrid AI
- AI Router
ai-engine/hybrid_ai/router.py
Application and Storage
- Simulator API
backend/api/simulator_router.py - Backend API
backend/api/app.py - Local Application Store
backend/database/store.py - Telemetry Service
backend/services/telemetry.py - Sync Worker
backend/sync/worker.py - Sync Queue
backend/sync/queue.py - Sync Transport
backend/sync/transport.py
Crew and Mission Interfaces
- Crew and Medical UI
frontend/trustline-ui/src/app/routes - 3D Digital Twin
frontend/trustline-ui/src/features/twin3d/components/DigitalTwin.tsx
Other components
- Crew / Sensors
- Mission Control
- Supabase
Connections 27
- Crew / Sensors → Telemetry Simulator: generates telemetry
README.md - Telemetry Simulator → Simulator API: serves simulator data
backend/api/simulator_router.py - Telemetry Simulator → Telemetry Bridge: feeds packets
- Telemetry Bridge → Quality Validation: runs assessment
data-engineering/simulator/ingestion_bridge.py - Signal Quality → Signal Schemas: inspects streams
ai-engine/agents/sensor_quality/core/quality_engine.py - Supervisor Workflow → Signal Quality: dispatches to
README.md - Supervisor Workflow → Personal Health: dispatches to
README.md - Supervisor Workflow → Risk Assessment: dispatches to
README.md - Personal Health → Health Baselines: tracks against
README.md - Risk Assessment → Risk Evidence and Rules: evaluates evidence
ai-engine/agents/risk_assessment/services/risk_engine.py - Document Ingestion → Medical OCR: extracts with
ai-engine/agents/personal_health/services/document_ingestion_service.py - Document Ingestion → Medical RAG: feeds knowledge store
README.md - Personal Health → Medical RAG: retrieves evidence
- Personal Health → AI Router: requests model routing
README.md - Risk Assessment → AI Router: requests model routing
README.md - Backend API → Local Application Store: reads and writes
backend/api/app.py - Backend API → Telemetry Service: routes telemetry
backend/api/app.py - Simulator API → Telemetry Service: ingests packets
backend/api/simulator_router.py - Telemetry Service → Local Application Store: persists telemetry
backend/services/telemetry.py - Backend API → Supervisor Workflow: requests assessment
README.md - Crew and Medical UI → Backend API: uses API
README.md - Crew and Medical UI → 3D Digital Twin: renders twin
README.md - Mission Control → Sync Worker: exchanges mission data
README.md - Sync Worker → Sync Queue: claims and updates
backend/sync/worker.py - Sync Worker → Sync Transport: delivers events
backend/sync/worker.py - Sync Worker → Local Application Store: records checkpoints
backend/sync/worker.py - Local Application Store → Supabase: optional cloud persistence