Skip to content

Architecture decision records ​

An ADR records a decision that is hard to reverse — one where the cost of changing our minds later is paid by consumers, not by us. Most decisions are not that. If a decision can be undone in a patch release without anybody noticing, it belongs in a commit message or in ../architecture.md, not here.

Concretely, for this repo: anything that changes the shape of DevToolbarExtension, the meaning of a data-dtb-* hook, the storage key layout, or what an entry in the exports map is called. Those are things published consumers have written code against.

Format ​

One file per decision, ADR-<NNN>-<kebab-name>.md, numbered in order and never renumbered; a deleted number is not reused. ADR-000-template.md is the template — Context, Decision, Consequences. There is no status field: an ADR in this folder is in force, unless it says in its own text that the question is open.

Rules that matter more than the format:

  • Write the rejected alternatives, and what they would have cost. An ADR that lists one option is a changelog entry wearing a costume.
  • Where a decision carries security, reliability or operational risk, accept the risk explicitly — say what could go wrong, how likely it is, and what mitigates it. A risk nobody wrote down is a risk nobody owns.
  • A mermaid diagram is worth adding where it clarifies a flow, and noise otherwise.
  • The code is the source of truth for what the package does; an ADR records why. When the code moves on from an ADR, write a new ADR for the new decision, list the old approach under its alternatives considered ("we did X, and dropped it because ..."), and delete the old ADR. Git keeps it.

The records ​

#Title
001Extensions are plain objects passed in as a prop
002The shell renders in the light DOM
003CONTRACT_VERSION compatibility policy (open question)
004Per-extension bar presentation
005Build the documentation site over the docs tree
006Viewer settings

Released under the MIT License.