# Layer Leakage

> Letting an inner layer depend on an outer one, violating the direction of the dependency rule.

Record: `lexicon:layer-leakage`
Kind: anti-pattern
Layer: [Structural Core](https://banes-lab.com/records/layer/structural-core.md)
Canonical: https://banes-lab.com/ontology/lexicon#lexicon-layer-leakage

Listed in [Lexicon terms](https://banes-lab.com/api/records/lexicon.md), after [Framework-Centric Core](https://banes-lab.com/records/lexicon/framework-centric-core.md) and before [Layer Skipping](https://banes-lab.com/records/lexicon/layer-skipping.md).

## Category

- [Codebase / System Architecture Styles](https://banes-lab.com/records/lexicon-category/codebase-system-architecture-styles.md)

## Negated by

- [Clean Architecture](https://banes-lab.com/records/architecture/clean-architecture.md)

## Linked from

- [Codebase / System Architecture Styles](https://banes-lab.com/ontology/principles/architecture-category-codebase-system-architecture-styles.md)
