# Rule As Code Over Convention

> Replace a written convention with an automated gate, so the invariant is enforced by code not by memory.

Record: `algorithms:no-convention-enforcement`
Kind: algorithm
Canonical: https://banes-lab.com/ontology/algorithms#algorithms-no-convention-enforcement
Closure: https://banes-lab.com/json/records/algorithms/no-convention-enforcement/closure

Listed in [Algorithm contracts](https://banes-lab.com/api/records/algorithms.md), after [Profile-First Over Unmeasured Optimization](https://banes-lab.com/records/algorithms/no-unmeasured-optimization.md) and before [Design By Contract Over Implicit Contract](https://banes-lab.com/records/algorithms/no-implicit-contract.md).

## Domain

- [Architectural Rules](https://banes-lab.com/records/algorithms-domain/architectural-rules.md)

## Tier

- [leaf](https://banes-lab.com/records/vocabulary/domain-tier-leaf.md)

## Composes

- [Enforcement Core](https://banes-lab.com/records/algorithms/enforcement-core.md)
- [Structural Core](https://banes-lab.com/records/algorithms/structural-core.md)

## Math type

- [Logic](https://banes-lab.com/records/reasoning/math-type-logic.md)

## Linked from

- [Debt and leverage](https://banes-lab.com/software-architecture/decay/debt-and-leverage.md)
- [Architectural Clusters](https://banes-lab.com/ontology/algorithms/algorithms-domain-architectural-clusters.md)
- [The mathematics](https://banes-lab.com/ontology/reasoning/the-mathematics.md)
- [Domain tiers](https://banes-lab.com/ontology/schema/the-vocabulary-domain-tier.md)
