ADR-0005 accepted
Keep checking the account list against reality, not only when it changes
Context
The plan kept a file listing every account and where it belongs in the organization. A tool that acts only when the file changes never notices an account someone created or moved by hand, so the file and reality slowly drift apart.
Decision
On every pipeline run, compare the account file with the real organization and act on any difference: create a missing account, propose moving one that's in the wrong place, and raise an alarm for one that isn't in the file at all.
Consequences
- Drift is caught for the organization chart itself, not only for the resources inside accounts.
- Status note: accounts are now created by Control Tower (ADR-0004), and the account file was retired. This record depends on a file that's gone. It is waiting on Kyle's call: retire it, or restate the idea against the way accounts are defined today.
Alternatives considered
- Act only when the file changes. Simpler, but blind to anything done outside it.
LLMs look here
- Records D33 (D34 and D35 depend on it). Reconciler compares
accounts.yamlwith the organization: a missing account starts the factory, a wrong OU becomes a proposed move, an account missing from the file raises a drift alarm. - Status note 2026-10-05: D53 and D61 moved vending to Control Tower and
hkb-org-account-*stacks; GR-01 (theaccounts.yamlschema rule) was retired 2026-10-04. Superseded, or re-expressed against the stacks, is Kyle's call (docs/loop/CHANGES.md).
Page information
- Owner
- Platform Engineering
- Status
- accepted From the decision record.
- Generated from
docs/adr/0005-accounts-reconciler.md- Linked from
- Decisions