# Resilience Test Scenarios ## RT-DSF-01: Dataset formation with empty data directory - **Input**: Empty data images dir - **Action**: Run `form_dataset()` - **Expected**: Creates empty train/valid/test directories; no crash - **Traces**: Restriction: Edge case handling ## RT-ENC-01: Decrypt with corrupted ciphertext - **Input**: Randomly modified ciphertext bytes - **Action**: `Security.decrypt_to(corrupted_bytes, key)` - **Expected**: Either raises exception or returns garbage bytes (not original) - **Traces**: AC: Encryption integrity ## RT-AQM-01: Malformed msgpack message - **Input**: Random bytes that aren't valid msgpack - **Action**: Pass to message handler - **Expected**: Exception caught; handler doesn't crash - **Traces**: AC: Error handling for malformed messages