# Mock Mirage

Record: `arch:mock-mirage`
Kind: anti-pattern
Layer: [Enforcement Core](https://banes-lab.com/records/layer/enforcement-core.md)
Severity: discouraged
Scope: contract_compatibility, correctness_verification, observability_traceability
Canonical: https://banes-lab.com/ontology#arch-mock-mirage

## Repair

- Refactored by: test_observable_behavior, contract_test, use_fake_at_boundary, reduce_internal_mocks
- Detected by: tests_fail_on_refactor_without_behavior_change, assert_called_everywhere, no_contract_tests
- Violated by: Overuse mocks so tests verify internal calls rather than observable behavior or contracts.

## referenced-by

- [Specification-Based Testing](https://banes-lab.com/records/arch/specification-based-testing.md)
