0000. Record architecture decisions as ADRs
Status
Accepted
Context and problem statement
Design decisions in RulesEngine (how expressions are compiled, which types they may call, how errors surface, what is cached) were explained only in pull requests and the change log. New contributors and users could not easily find why the engine behaves as it does, and the reasons were at risk of being lost.
Decision drivers
- Keep the reasons next to the code, reviewed like code.
- Keep the cost low, so that decisions actually get recorded.
- Use a widely known format.
Considered options
- Architecture decision records in Markdown under
docs/decisions, using the MADR format. - Explaining decisions in the GitHub wiki.
- Relying on pull request descriptions.
Decision outcome
Use MADR-style ADRs in docs/decisions. They are versioned with the code, reviewed in pull requests and published with the documentation site.
Consequences
- Good: decisions and their trade-offs are discoverable and reviewable.
- Good: superseding a decision leaves a visible trail.
- Bad: contributors have to write a short document for significant decisions.