architecture-drift-repair
Repair a confirmed mismatch between implementation and accepted architecture.
Procedure
- Begin from a specific drift finding, ADR, decision-map row, failing guard, or documented contradiction.
- Re-read the canonical source and the smallest affected implementation area.
- Define a batch that can be reviewed independently and should compile independently.
- Update implementation, docs, tests, manifests, and guardrails together when the drift crosses those surfaces.
- If the drift requires a broad migration, land only a bounded preparatory repair and record the remaining debt.
- Validate with the relevant focused checks before broader lanes.
Constraints
- Keep repairs small; "align with the Constitution" is not permission for a sweeping refactor.
- Do not hide drift by deleting checks, weakening docs, or bypassing ownership boundaries.
- Preserve unrelated user or agent work in a dirty tree.