# Framework Leakage

Record: `arch:framework-leakage`
Kind: anti-pattern
Layer: [Enforcement Core](https://banes-lab.com/records/layer/enforcement-core.md)
Severity: discouraged
Scope: domain_boundary
Canonical: https://banes-lab.com/ontology#arch-framework-leakage

## Repair

- Refactored by: add_adapter, map_to_domain_model, introduce_port, move_framework_outward
- Detected by: request_object_in_domain, ORM_entity_as_domain, framework_annotation_in_core, container_lookup_in_business_logic
- Violated by: Let framework classes, decorators, lifecycle assumptions, request objects, ORM entities, or infrastructure annotations enter core domain logic.

## referenced-by

- [Ports and Adapters Architecture](https://banes-lab.com/records/arch/ports-and-adapters-architecture.md)
