# Drafts and proposals

An assistant, or any API caller, can save a new register as a **draft**, or send changes to an accepted register as a **proposal**. Neither takes effect until a person adopts it in the app. Not every write waits for that: some MCP tools, and more REST routes, change a register at once ([see below](#what-an-assistant-can-and-cant-do)), and the categories and controls a draft save creates join the workspace's library straight away.

| You are saving | It lands as | Saved with | A person decides it |
| --- | --- | --- | --- |
| A new register, as a v5 document or from a template | a **draft** | `POST /api/v1/registers/from-document` (MCP: `create_register_draft`), or `POST /api/v1/registers/from-template` (`create_register_from_template`) | on the register's page: **Adopt draft** or **Discard draft** |
| A new register an AI model writes from a description, with **Ask me first** or **Make changes** access, whether a token's, a connected app's or an organisation key's | a **draft** | `POST /api/v1/registers/from-context` (`generate_register_from_context`) | on the register's page: **Adopt draft** or **Discard draft** |
| Changes to an accepted register, sent as a v5 document | a **proposal** | `POST /api/v1/registers/{id}/proposals` (`propose_register_changes`) | on the register's **Proposals** tab: **Adopt** or **Decline** |

Send requests to `https://riskregister.com` with `Authorization: Bearer <token>` and JSON bodies with `Content-Type: application/json` ([Getting started](https://riskregister.com/docs/getting-started.md)).

Every register has a `state`, `draft` or `accepted`, on its API reads and in its document. For a register, `accepted` means adopted: it is unrelated to a risk's `accepted` status (a formal acceptance) and to the `accept` treatment.

Each save returns a `reviewUrl`: hand it to the person who will decide. That can be the token's owner, who is a new draft's register admin; a proposer can adopt their own proposal too. What is checked is that a signed-in person decides in the app, not that a second person reviews.

## Drafts

### Saving a draft

The body of `POST /api/v1/registers/from-document` is a `riskregister.com/v5` document ([the format](https://riskregister.com/docs/register-document.md)), at most 200 risks and 1 MiB. Save a larger register in several parts to the same `register.key` (see [Saving to a draft again](#saving-to-a-draft-again)), or import the file in the app: the API has no import route.

- Every risk needs a key and a title (the format requires both), an inherent likelihood and impact, a category and a treatment. A row missing a score, a category or a treatment (which [the format](https://riskregister.com/docs/register-document.md#drafts-and-imports) allows, so that an unfinished document is still a valid one) is rejected with its reasons, and the rest are saved. A new risk with no residual score takes its inherent score as its residual, crediting no control until one is shown to work, as a template start and generation do; the response's `warnings` says how many. A residual stated as `unassessed` is still rejected, and an existing risk whose row leaves out the residual keeps its current residual.
- A save can't mark a risk `accepted`. A formal acceptance, with an approver and an expiry, is recorded in the app or through `POST /api/v1/risks/{id}/accept`; no MCP tool records one.
- If every row is rejected, nothing is saved: a `400` `VALIDATION_ERROR` with the reasons in `details.rejected`.
- A draft is a register, so it counts towards the plan's register limit (three on Free). At the limit, a save that would make a new draft is a `403` with subcode `PLAN_LIMIT` (`OPERATOR_LIMIT` if an operator set it); a save into an existing draft isn't refused.
- The token's owner (for an organisation key, its creator) becomes the new draft's register admin.

The response is `201` for a new draft, and `200` for a save into an existing draft or a replay:

| Field | What it holds |
| --- | --- |
| `register` | The register, with `state: "draft"` (on a replay, as it is now: `accepted` if adopted since) |
| `reviewUrl` | The register's page in the app, where it is adopted or discarded |
| `mode` | `create` (a new draft) or `merge` (saved into the draft `register.key` names) |
| `risks` | Each saved row: `key`, `id`, `ref` and `outcome` (`created`, `updated` or `unchanged`) |
| `rejected` | Each rejected row: `key` and `reasons` |
| `warnings` | Anything the save did not store |
| `controls`, `categoriesCreated` | Control links (`linked`, `created`, `notLinked`) and the categories the save created |
| `replayed` | `true` when this answers an earlier request with the same `Idempotency-Key` |

`POST /api/v1/registers/from-template` takes `{ "template": "<slug or id>", "name": "…", "key": "…" }` (`name` and `key` optional) and starts a draft from the template's risks and suggested controls. Without a `key`, no later document save can reach the draft.

### Saving to a draft again

Give the register a `key` in the document (`register.key`) on the first save. A later save with the same key merges into that draft, risk by risk: a changed row is updated, a new key is added, a row left out is left alone, and an unchanged row writes nothing. A row that moves residual above inherent needs a `rationale` (1 to 2,000 characters). Saving into a draft needs write permission on it, and register admin when the save changes the draft's own fields (its name, description, type, review cadence or custom field values).

Without a key, every save makes a new draft that counts towards the register limit, and that draft can't take a document save later. Adding to it then takes `create_risk` (`POST /api/v1/registers/{id}/risks`), which needs **Make changes** access: with **Ask me first**, give the register a key on its first save.

A draft has no revision check. A save overwrites the rows it names, a person's edits to them included, and puts back a keyed row a person deleted. Read the draft back first (`GET /api/v1/registers/{id}/document`), keep those edits, leave out deleted rows, and keep each row's `id`: it names a risk someone added in the app, and without it the row is saved again as a new risk.

| Status | Subcode | When |
| --- | --- | --- |
| `409` | `API_V1_REGISTER_KEY_TAKEN` | The key names a register that has been adopted. A save never overwrites an accepted register: propose changes instead |
| `409` | `API_V1_REGISTER_NOT_ACTIVE` | The draft the key names has been archived or closed |
| `409` | `API_V1_REGISTER_MATRIX_IMMUTABLE` | The document names a different scoring matrix from the draft's |
| `409` | `API_V1_IDEMPOTENCY_BODY_MISMATCH` | The same `Idempotency-Key` with a different document |
| `409` | `API_V1_DRAFT_DISCARDED` | A retry (same `Idempotency-Key`) of a save whose draft a person has since discarded. To save again, use a new `Idempotency-Key`; the same `register.key` makes a new draft |

The `Idempotency-Key` header is optional on the REST route. The MCP tools take it as the `idempotencyKey` argument, and require it. A retry with the same key and document returns the first save's result and writes nothing. See [Idempotency](https://riskregister.com/docs/idempotency.md).

### What a draft is, until someone adopts it

- **Visible and labelled.** A draft shows in the register list, search and its own pages, marked as a draft, and in exports and API reads with `state: "draft"`.
- **Not counted as accepted work.** It is left out of the organisation-wide risk totals (the posture rollup), each person's My work list, review reminders, the weekly owner digest and board reports. It can't be cloned until it is adopted.
- **Held from webhooks.** No event about it or its risks is sent while it is a draft. Adoption sends `register.created` and `risk.created` once, for what it holds then.
- **Still writable.** Direct writes (for example `create_risk`) land in the draft, which a person still adopts.

### Adopting or discarding a draft

Both happen in the app, on the register's page, and both need register admin permission. Organisation owners and admins have it unless they hold another role on that register.

- **Adopt draft** makes it an accepted register. In one step it confirms every risk still marked as needing confirmation (as a save, a template start or a generation marks its risks), records a `draft_adopted` audit row, sends `register.created` and one `risk.created` per risk to webhooks, and emails each risk owner other than the adopter that they own their risks, and each reviewer asked while it was a draft that a review waits (unless they turned off **Assigned to me**; at most once a day per register). Adopting a register that is already accepted changes nothing.
- **Discard draft** permanently deletes the draft and its risks, and records the deletion in the audit log. Categories and controls its saves created stay in the workspace's library. Discarding frees the draft's place under the register limit; archiving doesn't. An adopted register can't be discarded this way.

## Revisions

Every register has a `revision`, a whole number that goes up once for each transaction that changes its content: the register's own fields, its risks, their control links and their custom field values. Settings such as status and appetite, and organisation-level objects such as controls and categories, don't move it.

- `GET /api/v1/registers/{id}` returns `revision`, the document carries `register.revision`, and each result of `GET /api/v1/risks` (MCP: `search_risks`) names its register's revision.
- `GET /api/v1/registers/{id}/changes?since=<revision>` lists what changed after a revision you read (MCP: `get_changes`) and, for each of the first 100 changed records (the register or a risk), what changed: the audit actions taken on it since (`actions`) and each field's net change (`changes`: `field`, first `from`, last `to`, `at`, `by`), in the fields the risk and register reads return. A revision's changes are the audit rows its own transaction wrote; a change to a risk's control links or custom field values shows the risk with no field.
- Each adopted proposal keeps a snapshot of the register at the revision it produced: `GET /api/v1/registers/{id}/revisions`, `GET …/revisions/{revision}`, and `GET …/document?revision=N`, which also renders the current revision, kept or not. Any other revision, including one a direct change produced, is a `404` with subcode `API_V1_REVISION_NOT_RETAINED` (`…/changes` still says what changed at it); one ahead of the register's is a `400`. Both carry `details.currentRevision`.

## Proposals

### Making a proposal

`POST /api/v1/registers/{id}/proposals` takes a JSON body and a required `Idempotency-Key` header. The register must be accepted and active, and you need write permission on it and, when the proposal changes the register's own fields, register admin as well (a `403` otherwise).

| Field | Notes |
| --- | --- |
| `expectedRevision` | Required. The register's revision when you read what you are changing. It goes in the body only: an `If-Match` or `x-rr-if-match` header is refused |
| `document` | The changes, as a v5 document in which every field but `format` (`"riskregister.com/v5"`) and each risk row's `key` is optional, and a missing field means unchanged. At least one risk row or a `register` block; at most 200 rows and 1 MiB |
| `reason` | Required, 1 to 2,000 characters. Why, for the person deciding |
| `supersedes` | Optional. The id of one of your own open proposals on this register that this one replaces |

How the rows are read:

- A row with an `id` (the risk's UUID) changes that risk, as does a row whose `key` is a key a document save gave a risk. Only the fields the row carries change.
- A risk made in the app has no key of its own, so a document read gives its ref (such as `RISK-0042`) as its `key`: keep the row's `id`. A key equal to an existing risk's ref or id, with no `id`, is refused as ambiguous.
- A row with a new key and no `id` adds a risk, which needs a title, a category, an inherent score and a treatment. With no residual score it is proposed with its inherent score as its residual, and the proposal's `warnings` says so.
- A risk is closed with `status: "closed"`. Nothing is deleted, and control links are only added.
- A proposal can't set `status: "accepted"`, or change an accepted risk's scores, treatment or status.
- Residual above inherent needs a `rationale` on that row, of 1 to 2,000 characters.
- A proposal that would change nothing is refused.

| Status | Code and subcode | Meaning |
| --- | --- | --- |
| `201`, `200` | | Stored, or a replay of the same key and body |
| `400` | `VALIDATION_ERROR` | No `Idempotency-Key`; an `If-Match` header; or `expectedRevision` ahead of the register (`details.currentRevision`) |
| `409` | `CONFLICT`, `API_V1_PROPOSAL_DRAFT_REGISTER` | The register is a draft, which takes no proposal: save to it under its `register.key` if it has one, or use direct writes |
| `409` | `CONFLICT`, `API_V1_REGISTER_NOT_ACTIVE` | The register is archived or closed |
| `409` | `CONFLICT`, `API_V1_PROPOSAL_QUEUE_FULL` | The register already has 50 open proposals |
| `409` | `CONFLICT`, `API_V1_PROPOSAL_SUPERSEDES_UNKNOWN`, `…_NOT_OWN`, `…_CLOSED` | `supersedes` names no proposal here, someone else's, or one no longer open |
| `409` | `CONFLICT`, `API_V1_IDEMPOTENCY_BODY_MISMATCH` | The same key with a different body, or sent to another register |
| `412` | `PRECONDITION_FAILED`, `API_V1_PROPOSAL_STALE` | Something it changes has changed since `expectedRevision` |
| `422` | `UNPROCESSABLE`, `API_V1_PROPOSAL_REJECTED` | Rows refused, listed in `details.rejected` with `details.warnings`. Nothing is stored |
| `428` | `PRECONDITION_REQUIRED` | `expectedRevision` is missing |

Staleness is judged per risk, not per register. A proposal is refused only when a risk it updates changed in any way after `expectedRevision`, when it changes the register's own fields and those changed since, or when a risk it names (by id, or by a key that risk had) was deleted since; an edit to an unrelated risk doesn't count. The `412` carries `details.currentRevision` and `details.changes`, each with `entity` (`register` or `risk`), `id`, `revision` and `deleted`. Read what changed, rebuild the proposal on it, and propose again with the new revision and a new `Idempotency-Key`. Don't resend the same proposal with only the revision raised.

### What a proposal holds

A proposal is stored as made, and its content can't change afterwards. The create response, and `GET /api/v1/registers/{id}/proposals/{proposalId}`, return:

- `id`, `registerId`, `baseRevision` (the `expectedRevision` it was made against), `reason` and `warnings`;
- `state`: `open`, `adopted`, `declined`, `superseded` or `expired`;
- `changes`: each change with its before and after, as resolved when it was made, and `changeHash`, a canonical hash of them;
- `createdBy` (`userId`, `tokenId`), `createdAt` and `expiresAt`;
- `supersededBy`, `decidedBy`, `decidedAt`, `decisionNote` and `adoptedRevision`, once it is closed.

The create response adds `reviewUrl`, the register's Proposals tab; the single read adds `document`, as proposed. `GET /api/v1/registers/{id}/proposals` lists summaries without `changes` or `document`, newest first and [cursor-paginated](https://riskregister.com/docs/pagination.md); `?state=` takes `open` (the default), `adopted`, `declined`, `superseded`, `expired` or `all`. `GET /api/v1/registers/{id}/review-queue` (MCP: `get_review_queue`) also lists the open ones, the soonest to expire first.

A proposal expires 14 days after it is made unless someone decides it first. An hourly job marks it `expired`, and reads report one past its `expiresAt` as expired before then. A proposal made with `supersedes` marks the one it replaces `superseded`, pointing at the new one; the replaced one doesn't count towards the cap of 50.

### Adopting or declining, in the app

The Proposals tab (`/{org}/{register}/proposals`, the `reviewUrl`) lists open proposals, oldest first. Each shows who made it and through which token, the reason, when it expires, and what it would change now, field by field, resolved as adoption would resolve it. If it can't be adopted as it stands (for example, something it changes was edited after the assistant read the register), the tab says so and offers only Decline.

- **Adopt** sends the change hash of what the page showed. Adoption resolves the proposal again and writes nothing if it has gone stale, if a row can no longer be applied, or if what it would change now differs from what the page showed (a category renamed since, for example); the page then reloads to show the proposal as it stands. A proposal that has gone stale can't be adopted at all: a new one is needed.
- Adopted changes are written as the same edit in the app would be, with their audit rows and score history; a category or control the proposal names that doesn't exist yet is created in the workspace's library. The register's revision goes up, a snapshot is kept, webhooks are sent, and the proposal records its `adoptedRevision`.
- **Decline** takes an optional note of up to 2,000 characters, kept as `decisionNote`.
- Both need register write permission. A proposal that changes the register's own fields needs register admin as well: for adopting, judged on what it would change now; for declining, on what it changed when it was made.

## Who is emailed, and when

| Email | Sent when | Sent to |
| --- | --- | --- |
| A draft is waiting | A new draft is saved through a token (a document save, a template start, or a generation with **Ask me first** access) | The person it was saved for: the token's owner, or the organisation key's creator. Once per draft: a save into an existing draft, or a replay, sends nothing |
| A proposal is waiting | A proposal is made | Everyone who can adopt it: register write, or register admin when it changes the register's own fields. Not the person whose own personal access token made it; an organisation key's creator is told. At most one email per register per person per UTC day |
| A proposal is still waiting | Once per proposal, eight days after it was made: a daily run at 08:30 UTC picks up the open proposals made on the UTC day eight days earlier | Everyone who can adopt at least one of them, the proposer too if they can. One email per register per person that day |

Each person can turn all three off under **Drafts and proposals** in their notification settings (`/account/notifications`). An email is dropped unsent if, when it goes, the draft or proposal no longer waits or the person can no longer decide it.

## What an assistant can and can't do

These decisions are made only in the app, by a signed-in person. No API route or MCP tool makes them, whatever the token's role, and an assistant must not make them for the person, through a browser or in any other way:

- adopt or discard a draft;
- adopt or decline a proposal.

Some MCP tools write at once, as the token's owner, with nobody's review, and only with **Make changes** access: an **Ask me first** token gets the draft save, the template start, the proposal and a generation that lands as a draft, and none of these ([Authentication](https://riskregister.com/docs/authentication.md)). `create_risk`, `assess_risk`, `treat_risk` (which can close a risk), `request_review`, `complete_review`, `record_review` (a review just done, with no request first) and `cancel_review` act on a register's risks; `review_control_implementation` records a control implementation's review (an implementation belongs to the workspace, not a register). In an accepted register a risk or review change is live at once: webhooks are sent, a new owner it names and a reviewer it asks are emailed as in the app (each at most once a day per register; what comes later that day waits in their My work), and no snapshot is kept. In a draft, the change lands in the draft. `generate_register_from_context` makes a new register whose risks and scores an AI model writes. It is not one of the direct writes: at every access level the register is a draft, waiting for a person to adopt it or discard it like any other (its `register.state` is `draft`, and its `reviewUrl` is the register's page). Your description is sent to a third-party AI model, and the call uses the plan's AI allowance and one of its registers; discarding the draft frees the register. Use these tools only when the person asks for that change. Every change is in the audit log with the token that made it. The REST API has more direct writes than the tools; see [MCP endpoint](https://riskregister.com/docs/mcp.md) for the tool list and how a tool call behaves.

When you report back to the person: a draft is saved, not live; a proposal is proposed, not made; a direct change is made, and in an accepted register it is live at once. Give them the `reviewUrl` for a draft, a proposal or a generated register.
