# Zombie Code

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

## Repair

- Refactored by: delete_code, archive_reference, remove_exports, add_dead_code_check
- Detected by: unused_exports, unreachable_branches, dead_feature_flags, zero_runtime_hits
- Violated by: Leave unreachable, unused, or disabled code in the system where it keeps misleading the developer and the model, and can be reactivated by accident.

## referenced-by

- [Evolutionary Architecture](https://banes-lab.com/records/arch/evolutionary-architecture.md)
