Skip to content

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.

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.

  1. Copy docs/adr/template.md to the next free number, as NNNN-title.md.
  2. Set the status to Proposed, the date, and the deciders.
  3. Fill in the four sections: Context, Decision, Consequences, and Alternatives considered.
  4. Add a row for it to the table in docs/adr/README.md.
  5. Open a pull request. Discussion happens there.
  6. A maintainer sets the status to Accepted when 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.

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.

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.

  • No check enforces the four sections or the status line. Reviewers do.
  • These docs do not copy the ADRs. Read them in the repository.