Skip to main content
Version: Next

Paid

Decision records

Keep your architecture decision records in the portal, next to the pages they belong to. A record is a Markdown file named <name>.adr.md in a page's folder, beside its page files, and the site picks it up on its own: it becomes a tile on that page, and a page of its own, with no .page.yml to write. Its name is written as a page's: 0001-Orders-reach-the-warehouse-by-event.adr.md is 0001 Orders reach the warehouse by event.

portal/
Home.page.yml
Home/
Selling.page.yml
Selling/
Checkout.page.yml
0001-One-front-door-for-the-storefront-apps.adr.md # a tile on Selling

The file starts with frontmatter naming the model element the decision is about, by its Id and its path, and the rest is the record, in Markdown:

---
title: One front door for the storefront apps
description: The web and mobile shops call the Storefront BFF only.
status: accepted
date: 2026-09-27
element:
id: 9be5bcfe-046f-4a56-a637-f6b564ee04f9
path: shop/platform-storefront/storefront-bff
---

## Context

The web shop and the mobile shop need the same calls...

description and status are required. status is the decision's: proposed, accepted, rejected, deprecated or superseded. title defaults to the name, date is YYYY-MM-DD, and icon defaults to a scroll. The element's Id is in the ids block of your model's .g.kq file, beside its path. In VS Code you don't copy it from there: after path: or id: under element, completion lists the model's elements by path, with each one's name and type, and picking one fills in both lines.

A decision about several elements lists them under element, each with its Id and path:

element:
- id: ebb9f259-407c-423a-bf28-392bd5798aaf
path: shop/platform-orders/order-service
- id: 46ab7078-7746-42ca-ba71-3437866fc755
path: shop/platform-orders/warehouse-wms

A decision about no one element, such as how the whole landscape ships, leaves element out.

When a decision is replaced, set its status to superseded and name the record that replaced it in superseded-by, by its file's path from portal/:

status: superseded
superseded-by: Home/Selling/0005-Search-keeps-its-own-index.adr.md

superseded-by is required with superseded and refused with any other status. The successor can sit beside another page. kq portal:build reports an error when the successor isn't there, or when the chain of successors loops back to a record already in it, and warns when the successor is still proposed or rejected, since nothing has replaced the decision yet.

The Id is what counts: if the element is renamed or moved, the record still finds it and the site shows its new path. Renaming or moving it in VS Code rewrites the path in the file too; if you change its Code by hand instead, kq portal:build warns that the path in the file is out of date. An Id the model doesn't have is an error. In a list, each entry is checked on its own.

The tile shows the decision's status and date, Decision · Accepted · 2026-09-27. Records you don't list in the page's tiles come after its other tiles, by name, with no warning; list one with page: <its name> to place it yourself. The record's page shows the status, the date, each element's path and Id, one view focused on all its elements, and then your text; a record about no element shows neither. A superseded record's status reads Superseded by and links to its successor, whose page lists the records it replaced under Supersedes. You write the link once, in the superseded record.

© 2026 Extenza Works. All rights reserved.