Writing
ADR creator and architecture canvas
Write an architecture decision record in MADR form, draw the architecture on a canvas, and get a numbered ADR in docs/adr.
The ADR creator walks you through an architecture decision record in MADR form and writes it to
docs/adr/NNNN-<slug>.md in the project. To start it, choose New doc (in the sidebar or on Home) → Architecture
decision (ADR), or ADR in the Plan from an idea… (▾) menu in a project's header. If you open it from the
sidebar on a project's page, that project is already chosen.
A decision from a meeting can start here too. Meeting notes saves it as an ADR draft with the title, the reason and the decision filled in. You finish it from Drafts.
Steps#
The creator has nine steps: Basics, Context, Drivers & quality, Estimates, Architecture, Contracts, Options & trade-offs, Decision and Review. You can move between them in any order. Drivers & quality, Estimates, Architecture, Contracts and Options & trade-offs are optional.
Basics#
Here you fill in:
- the title, which names the decision rather than the feature ("Cache product catalog in Redis");
- the kind: Architecture decision (a rule that needs approval to break) or Design principle (guidance for teams);
- the status: proposed, accepted, rejected or deprecated;
- decision makers, consulted, informed and tags;
- the ADRs this one supersedes.
Context#
The problem statement (required), the scope (one feature or the whole application), and assumptions and constraints.
Drivers & quality#
Decision drivers go in a list you can reorder. Architecture characteristics come from a built-in catalogue (operational, structural and cross-cutting), and you can mark up to three as top. Quality attribute scenarios have a source, stimulus, environment, artifact, response and response measure. A scenario without a measure is marked "not measurable".
Estimates#
A calculator for daily active users, requests per user, peak factor, payload sizes, records per day and retention. It shows average and peak requests per second, peak bandwidth and storage, with the formulas. Add to the ADR puts the result under Context → Estimates.
Architecture#
This step is the canvas described below. Editing the canvas is a Pro feature. Without Pro you can skip the step, and existing diagrams stay readable.
Contracts#
This step lists every request and message drawn on the canvas with its endpoints or messages: method and path, request fields, success status, response fields and errors. Example bodies are built from the fields. For a block linked to another Kitsune project, Import from <project> adds operations from that project's API catalogue.
Options & trade-offs#
List the options you considered with their pros and cons, then score them in a weighted matrix. Each driver has a weight from 1 to 5 and each cell a score from −2 to +2. Kitsune marks the highest total, and the choice stays yours. You can also mark how each option affects each quality scenario. A pattern catalogue (architecture styles, caching, storage, resilience and more) works offline and can add an entry as an option.
When the canvas has blocks, each option shows its Architecture. That is what its variant adds, removes and changes, plus the checks it resolves and adds compared with the base canvas, for example "+1 block, 1 changed · resolves 1 check". Show differences lists the details and Show on canvas opens the option in the Architecture step.
Decision#
Pick the chosen option and write the technical justification (required). You can add a business justification and the consequences. The risk matrix scores likelihood × impact, 1 to 3 each. A score of 6 to 9 is high, and unproven technology is always high. Compliance says how the decision is checked: by an automated fitness function or a manual review. Kitsune suggests fitness functions from your top characteristics, measured scenarios and the canvas.
Review#
Review lists blocking problems (no title, no problem statement, no decision, no justification) and warnings, each linked to its field. Below them you see the ADR as it will be rendered and its path with the next free number. You can edit the slug.
The architecture canvas#
Add blocks (Person, Client app, Service, API gateway, Load balancer, Function, Database, Cache, Message broker, Object storage, CDN, Identity provider, Scheduled job, External system) and connect them with interactions: sync requests, async messages, data and cache reads and writes, each with a protocol and a purpose. If you change an interaction's style, Kitsune removes what doesn't fit the new style (a protocol of another style, endpoints of a request, messages of an async message, a data contract) and tells you what it removed. One <kbd>⌘</kbd> <kbd>Z</kbd> brings it all back.
You can start from a template: "Web app + API + database", "Event-driven services" or "Cache-aside read path". Each template has protocols and one example endpoint, message or data contract per interaction (marked "Example (rename)"), so a fresh template shows no findings.
The canvas checks the model as you draw and lists findings. Findings never block creation. The canvas flags:
- a database written by more than one service, a database one service writes and another service reads directly, a message broker that receives messages but hands them to nobody, a cache nothing fills, a cycle of sync requests, a sync chain longer than three hops, a block with no interaction;
- a call to an external system with no timeout or retry note, an async consumer with no idempotency note, a request with no protocol or no endpoint, except from a Person, which stands for someone using the block;
- the fallacies of distributed computing ("the network is reliable", "observability is optional", "versioning is easy") where they apply;
- a service that writes its database and also publishes a message with nothing keeping the two in step (note an outbox or change data capture to clear it), a Function connecting straight to a relational database (note a connection pool or proxy), and one sync call that changes data in three or more services (note a saga);
- boundaries: a sync call from outside a trust zone to a block inside it that is not an API gateway or load balancer, and data access from outside a trust zone to a store inside it. Without trust zones, a client calling a service directly while the canvas has an API gateway;
- data: a Confidential, Restricted or personal-data store in no trust zone, and a block that reads one store and writes another of a lower class (or one with no class, or without personal data). Such a block copies data down;
- threats at trust zone crossings: every interaction whose two ends sit in different trust zones is checked against STRIDE: spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege (only tampering, information disclosure and denial of service when the target is a store, broker, CDN, external system or person). The finding names what nothing covers. A category counts as covered when the call's notes, or the notes of a trust zone it enters or leaves, mention authentication, OAuth, OIDC, JWT, token, mTLS, API key or signature (spoofing); TLS, HTTPS, signing, HMAC or integrity (tampering); audit (repudiation); TLS, HTTPS or encryption (information disclosure); rate limit, throttling, quota or circuit breaker (denial of service); authorization, RBAC, ABAC, scope, least privilege, permission or role (elevation of privilege). One sentence on a trust zone covers every call into or out of it;
- reliability: a block whose sync dependencies (requests, data reads and writes, followed on) together give less than its availability target (the product of their targets, rounded down; a call whose notes mention a fallback, degraded mode, "optional" or "best effort" does not count), a chain of sync calls whose p99 latencies add up to more than the block's own p99 (the worst case of calls made one after another), and a block with 1 replica that targets 99.9% or more, or that such a block depends on;
- a diagram close to the size Mermaid draws (50 000 characters or 500 links). Past that, GitHub shows it as code.
Data class and reliability#
A Database, Cache, Object storage or Message broker has an optional Data class (Public, Internal, Confidential or Restricted) and a Holds personal data checkbox. A block holding Confidential, Restricted or personal data shows a text tag on the canvas, such as "Restricted · personal data". Screen readers hear the same words.
Every block except Person and Client app has an optional Availability target (99% to 99.999%) and a p99 latency in milliseconds under Reliability. A Service, API gateway, Load balancer, Database, Cache or Message broker also has Replicas. Latency takes a whole number from 1 to 600 000, and Replicas one from 1 to 1 000. Any other value shows an error under the field when you leave it and is not applied. If you change a block's type, Kitsune removes the fields the new type doesn't have and tells you what it removed. One <kbd>⌘</kbd> <kbd>Z</kbd> brings them back.
The help under an interaction's Notes and a trust zone's Notes lists the words the checks look for. Option variants can change the data class and the reliability fields like any other field, and each option's checks include these findings.
In the ADR, the Components table gets a Data column ("Restricted, personal data") and a Reliability column ("99.9% · p99 300 ms · 3 replicas"), but only when some block has a value. A Trust zone crossings table after the Interactions table lists each crossing with the zone it enters or leaves and the STRIDE categories covered and open. A canvas with any of these values is stored as model version 5. Kitsune versions before 1.1.2 show such an ADR's drawn Mermaid diagram but can't edit its canvas. Editing the fields follows the canvas plan rule. The findings and the tables are on every plan.
Everything works from the keyboard: add, connect, move with the arrow keys (<kbd>Shift</kbd> for larger steps), duplicate (<kbd>⌘</kbd> <kbd>D</kbd>), group (<kbd>G</kbd>), delete, undo (<kbd>⌘</kbd> <kbd>Z</kbd>) and redo.
You can turn off the single-letter shortcuts on a block (<kbd>M</kbd> move, <kbd>C</kbd> connect, <kbd>N</kbd> add next, <kbd>G</kbd> group) with Single-key shortcuts. It sits next to Keyboard shortcuts above the canvas, which unfolds the full list. Turn them off when, for example, a screen reader or speech input sends letters. Shortcuts with <kbd>⌘</kbd>, the arrow keys, <kbd>Enter</kbd>, <kbd>Delete</kbd> and <kbd>Esc</kbd> keep working. Every action also has a button: Add a connected block…, Put in a group… and Move with arrow keys under Block actions in the block's inspector (each with its shortcut beside it), and Connect in the List view. Kitsune remembers the choice on this computer.
Screen readers read the canvas as an architecture diagram. Each group is read with its kind and number of blocks,
and each block with what it connects to and the checks that mention it. The Mermaid flowchart in the ADR starts with an accessible
title and description (accTitle, accDescr), which GitHub reads out.
Several blocks at once#
Select several blocks to move, delete, duplicate, group or line them up together:
- <kbd>Shift</kbd>+click or <kbd>⌘</kbd>+click adds a block to the selection or takes it out. A plain click selects one block again. <kbd>Shift</kbd>+drag on the empty canvas draws a selection box and adds every block it touches (a plain drag still pans). <kbd>⌘</kbd> <kbd>A</kbd> selects every block.
- By keyboard, <kbd>Shift</kbd> <kbd>Space</kbd> on a focused block adds it or takes it out, and the List view has a checkbox on each block. <kbd>Esc</kbd> or a click on the empty canvas clears the selection. In Focus canvas the first <kbd>Esc</kbd> clears it and the second leaves focus mode.
- Selected blocks carry a tick, and the inspector shows "3 blocks selected" with their names and Move with arrow keys, Duplicate, Put in a group…, a Group field, Align… (left, centre, right, top, middle, bottom), Distribute horizontally / vertically (three blocks or more), Clear selection and Delete.
- Dragging a selected block moves them all. In move mode the arrow keys move them. <kbd>Delete</kbd> removes them with their connections, <kbd>⌘</kbd> <kbd>D</kbd> copies them with the connections between them, and Put in a group… draws one new group around them. Aligning never stacks blocks: one that would land on another goes beside it.
- Each of these is one step for <kbd>⌘</kbd> <kbd>Z</kbd>. The keys act on the selection only when the focused block is part of it.
- While an option is shown, the same actions change that option. You can't select blocks the option removes, and groups stay on the base canvas.
Groups#
A group draws a boundary around blocks: a Trust zone, a Bounded context, a Team, a Network (VPC or subnet) or a Region / zone. Choose Put in a group… on a block (under Block actions in the block inspector, or <kbd>G</kbd> on a focused block) and pick the kind. The new group is selected, with its name ready to type. Every group needs a name, and names must be unique.
- A block belongs to one group at most. Its Group field in the inspector moves it into another group or to No group. A group left with no blocks and no groups inside it is removed, and you can undo that.
- Groups nest up to three levels. Set Inside in the group inspector, or use Put in a group… on a block that is already in a group. A group is never offered as its own parent or as the parent of a group it contains.
- The outline follows its blocks, so you never size it by hand. Drag a group's label to move the group with everything in it. Delete group keeps its blocks and inner groups and moves them to the group's parent.
- By keyboard, each group comes in the Tab order right after the last block it encloses and is read out with its kind, name, parent and number of blocks. <kbd>Enter</kbd> opens it, the arrow keys move it (<kbd>Shift</kbd> for larger steps) and <kbd>Delete</kbd> removes it.
- You tell kinds apart by the outline's dash pattern and the kind written in the label. Colour plays no part. The key under the canvas lists the kinds in use. The List view lists every block under its group's path, such as "Internal / Ordering".
Flows#
A flow is the order in which a request travels through the canvas: "what happens when a customer places an order?" Open Flows (the tab beside Inspector, or the route icon in the canvas toolbar) and choose New flow. The new flow is called "Flow 1", with its name ready to type. Every flow needs a unique name, and a decision holds up to 20 flows.
- Each step is one connection already on the canvas, shown as "web-app → order-service · Place order (REST)". Add step lists first the connections that start where the previous step ended, under "From order-service", and the rest under "Other connections". Type to filter. A flow holds up to 50 steps, and a connection can appear in more than one step.
- A sync request, data read or cache read can Show reply: a dotted arrow back, labelled "response" or "result". Every step can carry a note.
- Move a step with its up and down buttons, or <kbd>Alt</kbd> <kbd>↑</kbd> / <kbd>Alt</kbd> <kbd>↓</kbd> on the focused step. The step keeps focus and screen readers hear "Moved to step 2 of 4". <kbd>⌘</kbd> <kbd>Z</kbd> undoes any flow edit.
- While a flow is open, the canvas draws its connections thicker with their step numbers ("2, 5" when a connection is used twice) and dims everything else. The numbers show the order, so colour isn't needed. A selected check finding replaces the flow highlight until you clear it.
- Flows follow the canvas. Deleting a connection removes its steps from every flow ("Removed the connection and 2 flow steps"). Changing its style to one without a reply removes the replies. A renamed block shows the new name in every step. One <kbd>⌘</kbd> <kbd>Z</kbd> brings the connection and its steps back.
- The checks list a flow with no steps and a flow whose sequence diagram is close to the size Mermaid draws. Choosing the finding opens the flow.
Option variants#
Each considered option can have its own version of the architecture. The canvas stays the base canvas. An option's variant records only what the option does differently: blocks and connections it adds or removes, and fields it changes, such as a database's technology or a call's protocol.
- Once the draft has named options, the Architecture row under the canvas toolbar sets what the canvas shows: Base canvas or an option. While an option is shown, a line reads "Editing option Redis cache — changes apply to this option only", and every edit goes into that option. Back to base canvas takes you back.
- The canvas marks what the option adds with "+" and what it changes with "~". What it removes stays visible, dimmed and crossed out with "−". The marks are also read out ("added in Redis cache"). Select a removed item to Restore in this option. The inspector shows the base value under each changed field ("Base canvas: PostgreSQL 17") and offers Reset to base canvas.
- Layout is shared. Moving a block moves it in the base canvas and in every option. You edit groups and flows on the base canvas only.
- Deleting a base block or connection also deletes the options' differences about it ("Deleted orders-db and 1 option difference"). One <kbd>⌘</kbd> <kbd>Z</kbd> brings them back. Removing an option removes its variant.
- While an option is shown, the checks run on that option's architecture. If the chosen option removes a connection that a flow uses, the checks say so.
Arrange#
Arrange in the canvas toolbar lays out every block on the grid, Left to right or Top to bottom. Blocks follow the direction of the arrows, members of a group stay together and nothing overlaps. Then the view zooms to fit the result. Arrange counts as one change, so <kbd>⌘</kbd> <kbd>Z</kbd> puts every block back. It runs on your computer.
Focus canvas#
Focus canvas in the canvas toolbar, or <kbd>⌘</kbd> <kbd>⇧</kbd> <kbd>F</kbd> (<kbd>Ctrl</kbd> <kbd>Shift</kbd> <kbd>F</kbd> on Windows and Linux), gives the canvas the whole window. The sidebar, the step list, the patterns panel and the step buttons are hidden. The inspector and the checks stay beside the canvas. Hide inspector gives their width to the canvas too, and Show inspector shows how many findings are waiting. Selecting a block doesn't reopen the inspector.
To leave focus mode, choose Exit focus, press the same shortcut or press <kbd>Esc</kbd>. If a Connect or Add next list is open, <kbd>Esc</kbd> closes it first. While you type in a field, <kbd>Esc</kbd> does nothing. Your undo history, selection and zoom are kept. Focus mode ends when you leave the step and is not remembered.
Export the diagram#
Export in the canvas toolbar (the download icon), or Export next to a diagram in the reader, saves the diagram as SVG (vector, opens in a browser or a vector editor) or PNG (four times its size on screen). The picture has the blocks, labelled arrows, group outlines and the key. It leaves out the selection, handles and grid, and uses a white background so it reads well on paper and in light wikis. You pick the location in the system save dialog. Kitsune makes the file on your computer and sends it nowhere. After saving, Show in Finder opens the folder.
The file#
---
type: adr
kind: architecture-decision
title: Outbox for webhook delivery
status: accepted
---
# 0002. Outbox for webhook delivery
The ADR has Context and Problem Statement, Decision Drivers, Architecture Characteristics, Quality Scenarios, Architecture (a Mermaid flowchart, a Components table, an Interactions table, the contracts and the flows), Considered Options, Decision Outcome with Consequences, Risks and Compliance, Pros and Cons of the Options, More Information and Notes. Empty optional sections are left out.
Groups become nested Mermaid subgraphs titled with kind and name, for example "Trust zone: Internal". The
Components table gets a Group column with each block's group path. Without groups the Architecture section is
written exactly as before.
Each flow gets its own part under Flows, after the tables. The part has a heading with the flow's name, its
description, a Mermaid sequenceDiagram whose arrows start with their step numbers (accTitle and accDescr
included), and the steps as a numbered list with their notes. A flow without steps is written as "No steps yet.". The
flowchart stays the first Mermaid block of the section. The reader draws each flow as a sequence diagram with
lifelines, numbered arrows, dotted replies, notes and a key, and Show source shows the Mermaid. Screen readers
hear it as a sequence diagram with its steps as an ordered list.
If the chosen option has a variant, the Architecture section (flowchart, tables, contracts and flows) describes the base canvas with that option applied. Flow steps that use connections the option removes are left out. In Pros and Cons of the Options, each option with a variant gets Architecture of this option: its differences as a list, the checks it resolves and adds, and a small Mermaid flowchart of the changed blocks and their neighbours. The reader and the Review preview draw those diagrams with their marks, and Show source shows the Mermaid.
Kitsune stores the canvas model in the same file, in a comment that renderers hide. That lets the reader draw the diagram again, outlines included. GitHub draws the Mermaid flowchart instead. An ADR with groups uses version 2 of the model, one with flows version 3 and one with option variants version 4. Kitsune versions released before these show the Mermaid block as code instead of drawing it. Without flows the Architecture section is written exactly as before.
Superseding an ADR#
The ADR links to each ADR it supersedes. Review lists them under Superseded ADRs, each with Mark … as
superseded, checked by default. On Create, Kitsune sets status: superseded and supersededBy: <new file> in the
front matter of each checked file and changes nothing else in it. The reader shows supersededBy as a link. Uncheck a
file to leave it as it is, and Review reminds you to update it yourself. If a checked file was deleted or can't be
changed, Kitsune still creates the new ADR and names the file it couldn't mark.
After Create, a project with a Git source asks you to publish the ADR with Send changes. In a project imported
from a local folder, the ADR is saved in that folder's docs/adr/ and you commit it with your own Git tools.