Skip to main content
Version: 0.4.1

KQ048 — a change of authority is covered once

Error · change-covered-once · Plateaus

Each change of a Domain Object's authoritative holding is covered by exactly one data migration of its plateau.

A Domain Object's authoritative Data Entity is another than in the plateau before, and no data migration of that plateau covers the new one; or two data migrations of one plateau cover the same entity. kq build derives a data migration for every change of authority, so this comes from a declaration that adopts the derived one and leaves out the new entity's covers line: add it. Where two cover one entity, keep one of the lines.

Examples​

In to-be, the orders' authoritative entity moves from orders-db to orders-store, so a migration that covers only the old one leaves the change uncovered and raises KQ048:

plateau to-be { ecosystem shop { data-migration migrate-commerce-order "Move orders to the new store" { covers commerce/order-service/orders-db/order } } }

Covering the new entity as well raises nothing:

plateau to-be { ecosystem shop { data-migration migrate-commerce-order "Move orders to the new store" { covers commerce/order-service/orders-db/order covers commerce/order-service/orders-store/order } } }

© 2026 Extenza Works. All rights reserved.