-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
domain-modelDomain model and scenario testingDomain model and scenario testingsafetyClinical safety criticalClinical safety criticalscenario-testingScenario test candidates from domain modelScenario test candidates from domain model
Description
Parent: #39
Context
The scenario derivation pipeline identified 11 error scenarios where cross-object propagation can fail. These represent failure paths from the 5 business scenarios (BS-001 through BS-005) and should be tested to ensure graceful degradation.
Error Scenarios
| ID | Event | Failing Propagation | Severity |
|---|---|---|---|
| SC-ERR-001 | genomic_report_received | entity extraction fails to identify variants | Critical |
| SC-ERR-002 | genomic_report_received | SNOMED CT mapping fails | Critical |
| SC-ERR-003 | entity_extraction_complete | MedGemma recommendation generation fails | Critical |
| SC-ERR-004 | recommendation_generated | evidence retrieval from CORD-19 fails | High |
| SC-ERR-005 | recommendation_blocked | alternative recommendation generation fails | High |
| SC-ERR-006 | treatment_plan_finalized | case outcome tracking fails | Medium |
| SC-ERR-007 | drug_interaction_detected | CPIC dose adjustment fails | Critical |
| SC-ERR-008 | dose_adjustment_recommended | PGx audit logging fails | Medium |
| SC-ERR-009 | neoantigen_predicted | vaccine design candidate ranking fails | High |
| SC-ERR-010 | vaccine_design_complete | patient case monitoring flag fails | Medium |
| SC-ERR-011 | trial_match_found | trial-case association fails | Medium |
Mapping to Business Scenario Failure Paths
| Error | BS Failure Path |
|---|---|
| SC-ERR-001 | BS-001 FL-3: Entity extraction failure (<80% extracted) |
| SC-ERR-002 | BS-001 FL-2: Knowledge graph query failure |
| SC-ERR-003 | BS-001 FL-1: MedGemma inference timeout (>30s) |
| SC-ERR-004 | BS-001 FL-2: KG unavailable, limited evidence |
| SC-ERR-007 | BS-002 FL-2: Drug database sync failure |
Implementation Notes
- Critical errors (SC-ERR-001, 002, 003, 007) must have fallback paths
- BS-001 specifies: MedGemma timeout -> fallback to NCCN guideline lookup
- BS-001 specifies: KG failure -> fallback to direct literature search
- BS-002 specifies: Drug DB failure -> external database lookup
- Each error should produce a user-facing message matching the BS failure path specification
- These should be implemented as integration tests exercising the full pipeline with injected failures
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
domain-modelDomain model and scenario testingDomain model and scenario testingsafetyClinical safety criticalClinical safety criticalscenario-testingScenario test candidates from domain modelScenario test candidates from domain model