Traceability Matrix
Each row links a capability of the Astronaut Health Intelligence Platform (AHI) to the requirement it implements (user story ids from the backlog in PROJECT_MASTER.md, section 11, when there is one), the code that is the source of truth, the tests that cover it, the data it uses, the method and where it is documented. Status per capability: Feature status matrix.
Data and simulation
| Capability | Requirement | Code | Tests | Data | Method | Reference |
|---|---|---|---|---|---|---|
| Canonical observation with origin and quality | US-007 | domain.ts | via engine.test.ts | all | Spec 6.3 model | Data model |
| Smart shirt simulator (HR, HRV, SpO2, RR, BP, skin temperature) | US-010 | adapters.ts | engine.test.ts, stats.test.ts | SIMULATED | Lag plus OU noise | Device simulation |
| Sleep and activity simulator | US-011 | physiology.ts | engine.test.ts, missionDays.test.ts | SIMULATED | Nightly plan | Device simulation |
| Cabin environment simulator | US-012 | cabin.ts | engine.test.ts | SIMULATED | Orbit and SAA dose model | Device simulation |
| Exercise simulator (CEVIS, ARED, T2) | US-013 | physiology.ts | engine.test.ts, intervention.test.ts | SIMULATED | Session model | Device simulation |
| NASA OSDR import with provenance | US-008, US-016 | import.mjs | none (checks inside the script) | REAL_PUBLIC OSD-569, OSD-575 | SHA-256, manifest | Dataset catalog |
| Data quality flags (missing, questionable, stale) | US-009 | anomaly.ts | anomaly.test.ts, engine.test.ts | SIMULATED | Stale windows, questionable share | Anomaly detection |
| Device pause and resume (operator) | none (v5 addition) | DevicesIndicator.tsx | devicePause.test.ts | SIMULATED | PAUSED state, readings NO_DATA, audit entries | Device simulation |
| Periodic eye (SANS) and hearing exams | none (v5 addition) | exams.ts | exams.test.ts, examRegions.test.ts | SIMULATED | Exam schedule from NASA briefs | Eye health and hearing |
| Ingestion API | US-006 | service.py | test_ingestion_observations.py | all origins | Canonical validation, idempotent by observation_id | Backend and API |
| Persistence | US-002 | models.py | test_ingestion_observations.py, test_health_registry.py | all origins | SQLite or PostgreSQL, Alembic | Backend and API |
| NASA DONKI space weather (live and bundled snapshot) | none (v5 addition) | donki.py | test_nasa.py, spaceWeather.test.ts | REAL_PUBLIC | Four DONKI feeds, 15 min cache, snapshot fallback | NASA data sources |
| NASA OSDR study search | US-008 | osdr.py | test_nasa.py | REAL_PUBLIC | OSDR search API, human studies | NASA data sources |
| Online and offline switch | none (final delivery addition) | connectivity.ts, index.tsx | connectivity.test.ts | Automatic, Online, Offline; build switch wins; stored choice | Backend and API | |
| Offline demo mode and typed API client | none (v5 addition) | client.ts | client.test.ts, test_schema.py | VITE_API_URL, generated OpenAPI types | Backend and API |
Health intelligence
| Capability | Requirement | Code | Tests | Data | Method | Reference |
|---|---|---|---|---|---|---|
| Personal baseline | US-017 | baseline.ts | baseline.test.ts, stats.test.ts | DERIVED | Median, MAD, p05 / p95, context buckets | Personal baseline |
| Univariate anomaly detection | US-018 | anomaly.ts | anomaly.test.ts | DERIVED | Robust z, EWMA, persistence | Anomaly detection |
| Small steady drift | US-018 | cusum.ts | cusum.test.ts | DERIVED | Tabular CUSUM on hourly mean robust z | Anomaly detection |
| Multivariate anomaly detection (experimental) | US-019 | multivariate.ts, service.py | multivariate.test.ts, engineMultivariate.test.ts, isolationForest.test.ts, whitening.test.ts, test_analytics.py | DERIVED | Per astronaut Isolation Forest, PCA whitening, persistence gate | Anomaly detection |
| Eye and hearing assessment | none (v5 addition) | assess.ts | exams.test.ts | DERIVED | Change vs pre-flight baseline, cited criteria | Eye health and hearing |
| Mission profiles, dose and space weather advisory | none (v5 addition) | profiles.ts | missions.test.ts, missionProfile.test.ts | DERIVEDREAL_PUBLIC | Cited reference values, career limit, DONKI events | Mission profiles |
| Risk assessment | US-020 | risk.ts | risk.test.ts | DERIVED | Combined rules, noisy-OR score, confidence | Risk assessment |
| Trend projection with horizons up to 15 days | US-021 | forecast.ts | forecast.test.ts | DERIVED | Damped Holt, 80% interval, history rule | Forecasting |
| With and without intervention | US-022 | intervention.ts | intervention.test.ts | SIMULATED | Noise free projection | What-if |
| Rule based recommendations | US-023 | recommendations.ts | risk.test.ts, comms.test.ts | DERIVED | Versioned catalog, autonomy | Recommendations |
| Assistant explanation (Ask AHI, demo) | US-024 | router.py, AssistantPanel.tsx | test_assistant.py, assistant.test.ts | DERIVED | Grounded snapshot, streamed answer, "Based on:" line | Ask AHI |
| Alerts and acknowledgement | US-025 | alerts.ts | alerts.test.ts, risk.test.ts | DERIVED | Dedupe, auto resolve, escalation | Alerts |
| Audit trail | US-027 | engine.ts | alerts.test.ts, engine.test.ts, comms.test.ts | MANUAL | Event log with actor and time | Governance |
| Daily check-in and self report | none (v2 addition) | checkins.ts | checkins.test.ts | SIMULATEDMANUAL | Personal band on 1 to 5 answers | Self-report |
| Earth link delay | none (v2 addition) | comms.ts | comms.test.ts | SIMULATED | Light time delay model | Earth link |
| Long term mission days | none (v2 addition) | missionDays.ts | missionDays.test.ts | SIMULATED | Seeded synthesis plus history | Mission features |
| Status timeline | none (v2 addition) | engine.ts | timeline.test.ts | DERIVED | Frames every 15 sim min | Product tour |
Product
| Capability | Requirement | Code | Tests | Data | Method | Reference |
|---|---|---|---|---|---|---|
| Health dashboard (Ground view) | US-014 | App.tsx | store.test.ts (state only) | SIMULATED | Product tour | |
| Historical series with baseline overlay and gaps | US-015 | TrendChart.tsx | none (UI) | SIMULATEDDERIVED | Product tour | |
| Provenance view | US-016 | RealDatasetsTab.tsx | none (UI) | REAL_PUBLIC | Data origins | |
| Demo scenarios (start, pause, reset) | US-026 | ScenarioControl.tsx | engine.test.ts | SIMULATED | Demo scenarios | |
| Final demo (seeded, offline, script) | US-028 | steps.ts | engine.test.ts (reproducibility) | SIMULATED | Guided demo | |
| FHIR R4 export | Spec 10.3 | fhir.ts | fhir.test.ts | all | Bundle of Patient, Device, Observation | FHIR export |
| Pseudonymized astronaut registry | US-003 | catalog.ts | fhir.test.ts (no PII) | configuration | Governance | |
| Mission and phase | US-004 | catalog.ts | comms.test.ts (mission reference) | configuration | Data model | |
| Devices and sources | US-005 | DevicesTab.tsx | engine.test.ts (device states) | SIMULATED | Data dictionary | |
| Measured by (devices behind a region) | none (v5 addition) | MeasuredBy.tsx | none (UI) | SIMULATED | Region to metrics to devices | Device simulation |
| Crew view body system cards | none (v5 addition) | CrewView.tsx | none (UI) | SIMULATEDDERIVED | One card per region, tap to highlight | Product tour |
| Alert sounds, audio description, skip links | none (v5 addition) | alarmSchedule.ts | alarmSchedule.test.ts, describe.test.ts | DERIVED | Earcons, escalation, speech synthesis | Accessibility |
| Anatomical atlas viewer (3D body) | none (v3 addition) | AtlasViewer.tsx | none for rendering (visual check on anatomy-lab.html) | SIMULATEDDERIVED | Tissue materials, status highlights, live vitals | 3D anatomy |
| Atlas manifest contract | none (v3 addition) | types.ts | manifest.contract.test.ts, validate.mjs | Z-Anatomy, CC BY-SA 4.0 | Manifest checked against every GLB | Manifest contract |
| Anatomy to health mapping | none (v3 addition) | health.ts | health.test.ts, manifest.contract.test.ts | DERIVED | Structure to region by rule; metrics from the catalog | Data model |
| Structure selection and structure panel | none (v3 addition) | StructureDetail.tsx | selection.test.ts, health.test.ts (panel components: none, UI) | SIMULATEDDERIVED | Atomic structure and region selection | Product tour |
| Alerts and flags per body system | none (v3 addition) | RegionEvents.tsx | health.test.ts (region alerts, anomalies, observed value) | DERIVED | Active alerts by severity, flags of the last 24 h | Product tour |
| Per system lazy loading | none (v3 addition) | atlasLoader.ts | none (UI); file list checked by manifest.contract.test.ts | Z-Anatomy, CC BY-SA 4.0 | One GLB per system, session cache | 3D anatomy |
| Procedural fallback body | none (v3 addition) | AnatomyViewer.tsx | none (visual check, forced on anatomy-lab.html) | SIMULATEDDERIVED | Error boundary, usable manifest check | 3D anatomy |
| Anatomy asset pipeline | none (v3 addition) | build.mjs | validate.mjs (npm run anatomy:validate), manifest.contract.test.ts | Z-Anatomy, CC BY-SA 4.0 | Pinned SHA-256, headless Blender, glTF Transform | 3D anatomy assets |
| Zoom to pointer, Monitor and Explore, atlas retry, body scan | none (v5 addition) | zoom.ts, interaction.ts, retry.ts, scan.ts | zoom.test.ts, interaction.test.ts, retry.test.ts, scan.test.ts | Pointer ray zoom, persisted mode, exponential backoff, shader band | 3D anatomy | |
| Keyboard body navigator | none (v5 addition) | KeyboardNavigator.tsx | keyboardNav.test.ts | DERIVED | Arrow keys over regions and structures, live announcement | 3D anatomy |
| Idle auto rotation rule | none (final delivery addition) | autoRotate.ts | autoRotate.test.ts | Stops on interaction, hover, selection and fly-to; resumes after 3 s | 3D anatomy | |
| Mission backdrops | none (final delivery addition) | MissionBackdrop.tsx, facts.ts | none (UI) | DERIVED | SVG behind the canvas, CSS parallax, facts from the cited profiles | Mission profiles |
| Visual first panels | none (final delivery addition) | BandGauge.tsx, Details.tsx | scale.test.ts | SIMULATEDDERIVED | Band gauge, change bar, delay clock, Details disclosure | Design system |
| Paused, waiting and lost feed states | none (final delivery addition) | feedState.ts | feedState.test.ts | SIMULATED | Device state behind each metric without data | Product tour |
| Browser tab status dot | none (final delivery addition) | useStatusFavicon.ts | useStatusFavicon.test.ts | DERIVED | Open CRITICAL alert (not acknowledged, not resolved) | Product tour |
| Speech stop on a language change | none (final delivery addition) | languageSpeech.ts | languageSpeech.test.ts | Cancel every voice, close the description, one sentence in the new language | Accessibility | |
| Engine text translation | none (final delivery addition) | msg.ts, engineText.ts | engineText.test.ts, i18n.test.ts | DERIVED | Structured message (id plus params) next to each English sentence | Engine text |
| Pseudo locale and i18n sweep | none (final delivery addition) | pseudo.ts, i18n-sweep.mjs | none (developer tools) | Bracketed strings, static scan of src/features | Finding untranslated text | |
| z-index scale | none (final delivery addition) | index.css | none (CSS) | CSS variables used through Tailwind | Design system | |
| Female reference model, textures, BodyParts3D kidney, per astronaut anatomy | none | none | none | Planned or absent | Feature status, Roadmap | |
| Project setup (monorepo, README, lint, tests) | US-001 | package.json | CI | Project structure |
US-001 is met: the repository holds the web app, the backend with docker-compose.yml and backend/.env.example, lint and tests.
Science references
Which hazard and physiological rationale stands behind each monitored signal is documented, with references, in Monitored physiology and Scientific references.