Design doc and RFC template in Markdown

A design doc proposes one change and lets reviewers agree or object section by section. This template has the sections that make that possible: a status header, motivation, goals and non-goals, the proposal, the alternatives you considered, the decisions you ask for, a rollout plan, risks and open questions.

Below is a short design doc for a made-up change. The diagram is a Mermaid block typed into the source.

Markdown
# Queue-based email sending

| | |
|---|---|
| **Status** | In review |
| **Authors** | Priya |
| **Reviewers** | Jonas (platform) |
| **Decision deadline** | 2026-12-02 |

# Summary

Sending email inside the request makes checkout slow and loses emails when the provider times out. We propose to put emails on a queue and send them from a worker.

# Goals

- Checkout latency below 300 ms at the 95th percentile.
- No email lost on a provider outage of up to one hour.

## Non-goals

- Changing the email provider.

# Proposal

```mermaid
flowchart LR
  A[Checkout] --> B[(Queue)]
  B --> C[Email worker]
  C --> D[Provider]
```

# Alternatives considered

| | A: Send in request | **B: Queue (proposed)** | C: Do nothing |
|---|---|---|---|
| Effort | None | 2 weeks | None |
| Risk | Lost emails | Low | Lost emails |

# Decisions

**D1.** Use the existing job queue, not a new service.

# Open questions

- [ ] Do we retry for 24 hours or 72? (Owner: Jonas)
Result
Queue-based email sending
Status In review
Authors Priya
Reviewers Jonas (platform)
Decision deadline 2026-12-02
Summary

Sending email inside the request makes checkout slow and loses emails when the provider times out. We propose to put emails on a queue and send them from a worker.

Goals
  • Checkout latency below 300 ms at the 95th percentile.
  • No email lost on a provider outage of up to one hour.
Non-goals
  • Changing the email provider.
Proposal
flowchart LR
  A[Checkout] --> B[(Queue)]
  B --> C[Email worker]
  C --> D[Provider]
Alternatives considered
A: Send in request B: Queue (proposed) C: Do nothing
Effort None 2 weeks None
Risk Lost emails Low Lost emails
Decisions

D1. Use the existing job queue, not a new service.

Open questions
  • Do we retry for 24 hours or 72? (Owner: Jonas)
First page of the design doc template with a title block, a status table and the summary section.
The first page of the design doc template: title block and status header.

What's in it

  • Status header. A table with status (Draft, In review, Accepted, Rejected, Superseded), authors, reviewers, dates, tracking issue and the decision deadline.
  • Summary and motivation. One paragraph for someone who reads nothing else, then the current state, the evidence and the constraints.
  • Goals and non-goals. Outcomes you can check after rollout, and what you deliberately leave out.
  • Proposal. An overview with a diagram, then one section per part of the design: data model, API, migration, failure handling.
  • Alternatives considered. A comparison table with the proposed option in bold, including "do nothing".
  • Decisions. The decisions you ask reviewers to accept, labelled D1, D2 so comments can refer to them.
  • Rollout, risks and open questions. Phases with exit criteria, a risk table and a task list of questions with owners.

The briefs under the headings are Markdown comments: visible in the editor and to the AI assistant, never on the page or in the PDF.

Review it where it is written

  • Comments on a passage. Reviewers select a sentence, comment, and you reply or resolve in the same place. Threads stay attached to the text as it changes.
  • Live editing. Several authors write at the same time and see each other's cursors.
  • History. The activity log shows who changed what and when, and any earlier state can be restored.
  • Code and diagrams. Fenced code with syntax highlighting, and Mermaid for flowcharts, sequence diagrams and more, drawn on the page.
  • PDF. Export a paged PDF for the review meeting or the archive.

Questions

Can reviewers comment on single sentences?
Yes. Anyone with edit access can select a passage and comment, reply and resolve threads. The comments stay attached to the text as the document changes.
Can I draw diagrams?
{ "Yes, with Mermaid in a fenced code block": "flowcharts, sequence diagrams, state diagrams, Gantt charts and more are drawn on the page, in the preview and in the PDF." }
Does it sync with Git or GitHub?
No. The document lives in markoto. You can download it as a Markdown file and commit that.
Can I keep a record of decisions?
The decisions section and the status header are part of the document, and the activity log records every edit. Set the status to Accepted when the decision is made, and keep the document as the record.

Updated November 19, 2026