# Refactor Selection

> Given a violation record, select refactor actions from the concept’s refactored_by field, rank actions by severity, dependency closure, blast radius, and expected reinforcement gain.

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

Listed in [Algorithm contracts](https://banes-lab.com/api/records/algorithms.md), after [Measurement Normalization](https://banes-lab.com/records/algorithms/measurement-normalization.md) and before [Enforcement Gate](https://banes-lab.com/records/algorithms/enforcement-gate.md).

## Domain

- [Architecture relationships](https://banes-lab.com/records/algorithms-domain/arch-relationships.md)

## Tier

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

## Composed by

- [Master Architecture Governance Kernel](https://banes-lab.com/records/algorithms/master-architecture-governance-kernel.md)
- [Architectural Relationship Algebra](https://banes-lab.com/records/algorithms/architectural-relationship-algebra.md)

## Math type

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

## Force

- [Contract compatibility](https://banes-lab.com/records/force/contract-compatibility.md)
- [Correctness verification](https://banes-lab.com/records/force/correctness-verification.md)

## Linked from

- [Principles are typed](https://banes-lab.com/software-architecture/principles/principles-are-typed.md)
- [Architecture relationships](https://banes-lab.com/ontology/algorithms/algorithms-domain-arch-relationships.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)
- [The forces](https://banes-lab.com/ontology/schema/the-forces.md)
