# Architectural Independence Chaos Engineering Report

## Executive Summary

**Validation Date**: 2025-10-03T10:56:00.359162
**Duration**: 0.02 seconds
**Layers Tested**: 7
**Total Chaos Injections**: 14
**Successful Injections**: 2
**Total Violations Detected**: 42

**Overall Health**: ❌ VIOLATIONS DETECTED

## Architectural Layer Overview

- **L1_Presentation**: CLI Interface and User Interaction (Dependencies: L2_Application)
- **L2_Application**: Feature Workflows and Use Cases (Dependencies: L3_Domain, L4_Service)
- **L3_Domain**: Business Logic and Domain Models (Dependencies: L4_Service)
- **L4_Service**: Application Services and Orchestration (Dependencies: L5_Infrastructure)
- **L5_Infrastructure**: Technical Infrastructure (Dependencies: L6_Integration, L7_Foundation)
- **L6_Integration**: External API and System Integration (Dependencies: L7_Foundation)
- **L7_Foundation**: Core Components and Utilities (Dependencies: None)

## Dependency Matrix

- **L1_Presentation**: L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- **L2_Application**: L3_Domain, L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- **L3_Domain**: L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- **L4_Service**: L5_Infrastructure, L6_Integration, L7_Foundation
- **L5_Infrastructure**: L6_Integration, L7_Foundation
- **L6_Integration**: L7_Foundation
- **L7_Foundation**: None

## Chaos Injection Results

### L1_Presentation

**import_failure**: ❌ FAIL
- Affected Layers: L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- Expected Affected: L1_Presentation
- Violations: 6

**module_unavailable**: ❌ FAIL
- Affected Layers: L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- Expected Affected: L1_Presentation
- Violations: 6

### L2_Application

**import_failure**: ❌ FAIL
- Affected Layers: L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- Expected Affected: L2_Application, L1_Presentation
- Violations: 5

**module_unavailable**: ❌ FAIL
- Affected Layers: L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- Expected Affected: L2_Application, L1_Presentation
- Violations: 5

### L3_Domain

**import_failure**: ❌ FAIL
- Affected Layers: L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- Expected Affected: L3_Domain, L1_Presentation, L2_Application
- Violations: 4

**module_unavailable**: ❌ FAIL
- Affected Layers: L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- Expected Affected: L3_Domain, L1_Presentation, L2_Application
- Violations: 4

### L4_Service

**import_failure**: ❌ FAIL
- Affected Layers: L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- Expected Affected: L4_Service, L1_Presentation, L2_Application, L3_Domain
- Violations: 3

**module_unavailable**: ❌ FAIL
- Affected Layers: L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- Expected Affected: L4_Service, L1_Presentation, L2_Application, L3_Domain
- Violations: 3

### L5_Infrastructure

**import_failure**: ❌ FAIL
- Affected Layers: L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- Expected Affected: L5_Infrastructure, L1_Presentation, L2_Application, L3_Domain, L4_Service
- Violations: 2

**module_unavailable**: ❌ FAIL
- Affected Layers: L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- Expected Affected: L5_Infrastructure, L1_Presentation, L2_Application, L3_Domain, L4_Service
- Violations: 2

### L6_Integration

**import_failure**: ❌ FAIL
- Affected Layers: L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- Expected Affected: L6_Integration, L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure
- Violations: 1

**module_unavailable**: ❌ FAIL
- Affected Layers: L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- Expected Affected: L6_Integration, L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure
- Violations: 1

### L7_Foundation

**import_failure**: ✅ PASS
- Affected Layers: L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- Expected Affected: L7_Foundation, L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration
- Violations: 0

**module_unavailable**: ✅ PASS
- Affected Layers: L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration, L7_Foundation
- Expected Affected: L7_Foundation, L1_Presentation, L2_Application, L3_Domain, L4_Service, L5_Infrastructure, L6_Integration
- Violations: 0


## Recommendations

❌ **Action Required**: Architectural violations detected that need attention.
🔧 **Priority**: Review and refactor components with dependency violations.
📊 **Monitor**: Run chaos tests regularly to prevent regression.
