# Null Semantics Drift

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

## Repair

- Refactored by: define_absence_semantics, use_option_result, schema_nullability, normalize_input
- Detected by: null_and_empty_string_same_field, optional_field_without_semantics, truthy_checks_for_domain_state
- Violated by: Use null, undefined, empty string, zero, false, missing field, and empty collection interchangeably.

## referenced-by

- [Null Object Pattern](https://banes-lab.com/records/arch/null-object-pattern.md)
