The ADR process
An architecture decision record (ADR) records one decision that is hard to reverse, with the reasons for it. Zentri’s ADRs live in docs/adr/ in the repository. They are the source for why the code works the way it does.
When to write one
Section titled “When to write one”Write an ADR before you build, when a change:
- adds a dependency to the core;
- changes the data model;
- changes the auth model or the token scopes;
- moves the open-core boundary.
A bug fix or a change that follows an existing ADR needs none.
Propose a decision
Section titled “Propose a decision”- Copy
docs/adr/template.mdto the next free number, asNNNN-title.md. - Set the status to
Proposed, the date, and the deciders. - Fill in the four sections: Context, Decision, Consequences, and Alternatives considered.
- Add a row for it to the table in
docs/adr/README.md. - Open a pull request. Discussion happens there.
- A maintainer sets the status to
Acceptedwhen the pull request merges.
The template:
# NNNN. Title
- Status: Proposed- Date: YYYY-MM-DD- Deciders: <names or roles>
## Context
What forces are at play. Facts, constraints, and the versions of external tools you checked.
## Decision
What we will do, stated as a rule.
## Consequences
What becomes easier, what becomes harder, and what we must now do.
## Alternatives considered
Each option you rejected, with the reason.Change a decision
Section titled “Change a decision”Do not rewrite an accepted ADR. To reverse it, write a new ADR that supersedes it.
Several accepted ADRs end with an “As built” section. It records where the built code differs from the plan, so the ADR stays true without a rewrite. The status line says what is not built yet.
The ADRs
Section titled “The ADRs”| ADR | Title | Status |
|---|---|---|
| 0001 | Languages and monorepo layout | Accepted |
| 0002 | Open-core boundary | Accepted. The ee/ license text needs legal review. |
| 0003 | Auth model and tokens | Accepted |
| 0004 | Sandbox strategy and OpenShell version | Accepted |
| 0005 | Coordinator persistence, file claims, and audit chain | Accepted |
| 0006 | Intent pipeline: extraction, embedding, matching, and registration | Accepted |
| 0007 | MCP server and agent adapters | Accepted. M8 built the doc-text signal differently, as ADR-0017 records. |
| 0008 | Sandbox launcher, merge check, and M4 enforcement | Accepted. The Go SDK prototype is not built, and no vendor agent has run in a sandbox. |
| 0009 | Questions, decisions, approvals, and PRDs | Accepted |
| 0010 | The Slack bot: identity links, acting as a linked user, and a delivery outbox | Accepted. Built against a fake Slack. |
| 0011 | The model router: cheap or frontier, decided by rules, applied by the kit | Accepted. Off by default. |
| 0012 | Website and docs: two static Astro sites, generated references, and quality gates in CI | Accepted. Not deployed. |
| 0014 | Distribution and deploy: signed installers, a checked release dry run, and gated Cloudflare deploys | Accepted. Nothing is published or deployed. |
| 0017 | Doc text as a second signal for near-duplicate symbols | Accepted. Doc thresholds are measured for the offline lexical scorer and two Ollama models only. |
The table in docs/adr/README.md is the full list.
Limitations
Section titled “Limitations”- No check enforces the four sections or the status line. Reviewers do.
- These docs do not copy the ADRs. Read them in the repository.