# Model-Driven Architecture

Record: `arch:model-driven-architecture`
Kind: approach
Layer: [Declarative Core](https://banes-lab.com/records/layer/declarative-core.md)
Severity: contextual
Scope: system, code generation, domain model
Canonical: https://banes-lab.com/ontology#arch-model-driven-architecture

## Repair

- Refactored by: Regenerate, Lock Generated Files, Update Model
- Detected by: model-code drift
- Violated by: generated code manually edited/diverged
- Measured by: generation conformance
- Enforced by: generation CI

## requires

- [Formal Model](https://banes-lab.com/records/lex/formal-model.md)
- [Transformation Rules](https://banes-lab.com/records/lex/transformation-rules.md)

## reinforces

- [Metadata-Driven Design](https://banes-lab.com/records/arch/metadata-driven-design.md)

## enables

- [Generated Implementations](https://banes-lab.com/records/lex/generated-implementations.md)

## conflicts-with

- [Handwritten Divergence](https://banes-lab.com/records/lex/handwritten-divergence.md)
- [Model Drift](https://banes-lab.com/records/lex/model-drift.md)
