The register document, format v5
riskregister.com/v5 is how a whole risk register travels: the JSON export, the importer, and what an assistant saves. JSON is the lossless form; CSV and Excel are projections of it with documented losses.
- Machine-readable schema:
/schemas/register/v5.json, JSON Schema 2020-12. It is generated from the importer's own validation schema, so the two cannot drift. - Status: current. Only v5 is produced; v1 to v4 still import (see Versions).
- Licence: this specification and its schema are licensed under Creative Commons Attribution 4.0 International (CC BY 4.0), © ISOSOC Advisory Ltd. You may implement, copy and adapt the format, including in commercial products, if you credit Risk Register.
The document
{
"format": "riskregister.com/v5",
"register": { "name": "Information security risk register" },
"risks": [{ "key": "unpatched-prod-hosts", "title": "Unpatched production hosts" }]
}
format and register.name are required, and every risk needs a key and a title. Everything else is optional in a document; see Drafts and imports for what an import needs. Unknown fields are errors everywhere, so a typo is reported rather than ignored.
register
| Field | Type | Notes |
|---|---|---|
name | string, 1–200 | Required. |
key | key (as for risks: letters, digits and . _ : -, ≤ 100) | Optional. The saving client's own stable name for this register, for the one-call document save: a later save with the same key merges into the same draft instead of making another. Exports carry it when a save gave the register one. File import ignores it. |
state | draft · accepted | Informational. accepted means a person adopted the register in the app; it has nothing to do with a risk's accepted status. Exports write it, so a document read back from a draft says so. A save always writes a draft, and import ignores it. |
revision | integer ≥ 1 | Informational. The register's revision when the document was read: it goes up once for each change to the register's content. Reads and exports write it, read in the same snapshot as the rest of the document. A save and import ignore it. |
type | enterprise · project · engagement · operational · daily · compliance · custom | |
scoringMatrixKind | iso31000_5x5 · simple_3x3 | On import it must match the target register's matrix. Scores are never re-binned silently. |
reviewCadence | daily · weekly · fortnightly · monthly · quarterly · annually · none | |
description | string ≤ 5,000, or null | |
customFields | object: field name → value | Informational on import: an import lands in an existing register. |
ref, id | string ≤ 64 | Informational. |
risks[]
| Field | Type | Notes |
|---|---|---|
key | letters, digits and . _ : -, ≤ 100 | Required and unique. The author's stable handle. Our exports write the key a document save gave the risk, else its ref (RISK-0042), else, if another risk already uses that ref as its key, its id. |
title | string, 1–500 | Required. |
description | string ≤ 5,000, or null | |
category | name ≤ 80 | Matched case-insensitively to a global or workspace category, and created if new. |
owner | email or name ≤ 320, or null | Matched by email to a member who is on the register (or to an org owner or admin). Otherwise, including a member who isn't on the register, it is kept on the risk as an unresolved owner ("Unresolved: Sam") until someone assigns a member. It never sends an invitation. |
inherent, residual | { "likelihood": 1–5, "impact": 1–5 }, or "unassessed" | Bounded by the register's matrix on import. |
treatment | mitigate · accept · transfer · avoid | |
status | open · under_review · closed · accepted | Defaults to open. |
reviewDate | YYYY-MM-DD, or null | |
controls | array of control keys | Each must be the key of a control in controls. |
customFields | object: field name → value | See Custom fields. |
rationale | string ≤ 5,000 | Accepted and counted, not stored on the risk. It has one use: where a save into an existing draft, or a proposal, puts a risk's residual score above its inherent one, a rationale of 1 to 2,000 characters is required, and is recorded in the audit log as that change's justification (see Saving again). |
sources | ≤ 50 of { kind, ref, verified? } | kind is document · url · interview · system · other. Accepted and counted, not stored yet. |
ref, id | string ≤ 64 | Informational. |
controls[]
| Field | Type | Notes |
|---|---|---|
key | as for risks | Required and unique. |
title | string, 1–500 | Required. |
type | preventive · detective · corrective · directive | Required. |
description | string ≤ 5,000, or null | Left out of an export when the control's text comes from a standard that we may cite only by its reference code. |
nature | manual · automated · semi_automated, or null | |
frequency | continuous · daily · weekly · monthly · quarterly · annually · event_driven · ad_hoc, or null | |
category | string ≤ 200, or null | |
libraryControlKey | string ≤ 100, or null | The library control it was adopted from, such as is-access-01. |
customFields | object: field name → value | |
ref, id | string ≤ 64 | Informational, except for the same-workspace link below. |
customFieldDefinitions[] and custom fields
{ "name": ≤ 120, "fieldType": "text" | "number" | "date" | "single_select" | "multi_select", "appliesTo": "risk" | "control" | "register", "options": [{ "value", "label" }] }
Values are keyed by field name, never by a workspace's field ids:
- text, date and select values are strings, and a select stores the option's
value; - numbers are numbers;
- multi-select values are arrays of strings.
Every name a risk, control or the register uses must be defined for that kind of entity, and defined once. On import, values go to the workspace's field with the same name and type. A field the workspace doesn't have is skipped.
meta
| Field | Notes |
|---|---|
workspace | { id, name? }. The workspace that wrote the document; see Controls on import. Self-reported. |
generatedBy | { agent?, model? }. Self-reported. |
source, exportedAt, exportedBy | Informational. |
Rules JSON Schema cannot express
The importer enforces these and names the field path when one fails:
- Risk keys are unique, and control keys are unique.
- Every key in a risk's
controlsis the key of a control incontrols. - Every custom-field name used is defined, once, for that kind of entity.
Drafts and imports
A document may be a draft: scores, category, owner and treatment left out, or a score marked "unassessed". That is a valid document.
Importing into a live register needs an inherent likelihood and impact for every risk, a category and a treatment; a risk with no residual score takes its inherent one. "unassessed" risks are refused, and their keys are named.
Saving a document (POST /api/v1/registers/from-document) makes a new draft register in one call. It stays out of reports, reminders and webhooks until a person adopts it in the app.
- Each risk with an inherent score, a category and a treatment is saved, provisional, keeping its
key. - The other risks are rejected, each with its reasons. A score stated as
"unassessed"is rejected too. - A new risk with no residual score takes its inherent score as its residual, crediting no control until one is shown to work, and the response's warnings say how many. An existing risk whose residual the save leaves out keeps its current residual.
- Custom field values go to this workspace's field with the same name and type, for risks, the register and the controls a save creates. A field the workspace does not have, or a value that does not fit its field, is skipped and named in the response's warnings, and the risk still saves. A control the save links to (one the workspace already has) keeps its own values.
- Limits: 200 risks and 1 MiB per call.
Refs such as RISK-0042 are minted by the receiving workspace, and a document's ref and id never name the new rows. A save keeps each risk's key and the register's key.
Saving again. A save whose register.key names a draft merges into that draft instead of making another:
- Each risk names a risk in the draft by its
id, when the id is one of the draft's risks (a document read back from the draft carries every risk's id), and otherwise by itskey. If two risks name the same draft risk, the second is rejected. - A risk
keyalready in the draft updates the fields the document sets and that changed. When none changed, the risk is left as it was and reportedunchanged. - A new risk
keyadds a risk. - A risk the document leaves out stays. A save never deletes.
- A field the document leaves out stays, custom fields included. An
ownerofnullor""clears the owner, and a custom field value ofnullclears that value. - Moving the residual score above the inherent one needs the risk's
rationale(here 1 to 2,000 characters), which is recorded in the audit log as the change's justification. Without one, that risk is rejected and left unchanged. - Risks are checked against the draft's own scoring matrix, which cannot change.
- Controls resolve to the ones the draft's earlier saves linked, so saving the same document twice creates no controls or links.
- Saving into a draft needs write permission on it, and admin permission to change its name, description, type, review cadence or custom field values.
A merge overwrites a keyed risk even if someone edited it in the app since the last save, and adds back one they deleted: for the risks it names, the document wins. A register.key that names an adopted register is refused: a save never overwrites one, and changes to it are proposals. A key that names an archived or closed draft is refused too.
Importing the same document twice through file import creates its risks twice: only the document save merges.
Reading a register back. GET /api/v1/registers/{id}/document returns the register as this document, the same one the JSON export writes:
- Each risk's
keyis the one a save gave it, else its ref (or itsid, if another risk already uses that ref as its key). - The register carries its
key, itsstateand itsrevision. - Controls are keyed by their refs, with
meta.workspacenaming the workspace.
The whole workspace at once: GET /api/v1/registers/export returns one of these documents per line (NDJSON), for every register not archived, drafts included (admin only). X-Register-Count is exact: a transfer that ends cleanly holds that many lines, and one that fails partway ends in a transfer error, never a clean short body.
Saved back with its register key, the document merges into the same draft. A risk someone added in the app has no key of its own: the document keys it by its ref (or, if another risk already uses that ref as its key, by its id), and a save names it by the id the document carries, never by its ref. Saving the document back unchanged therefore changes nothing, even if the draft gained risks in between, and a new risk whose key happens to equal an app risk's ref is added rather than written over it.
Controls on import
The importer resolves each control that an imported risk names to one target control:
- Same workspace. If
meta.workspace.idis the importing workspace, the control with thatidis used, if the workspace can see it. A re-import therefore links the controls the workspace already has instead of copying them. - The same library control. If
libraryControlKeynames a library control the workspace has adopted, its oldest adoption is used. - Otherwise it is created from the document's content, marked imported (
source: imported) and customer-owned (licence_origin: customer_owned), with no library link, because the text came from the file.
Every resolution reads through the workspace's own access rules, so a forged id or workspace can select only controls the importer can already see. A control no imported risk names is not created; it is counted and reported.
Round trip. Export a register, import it into an empty register in the same workspace, and export again: only keys, refs, ids and timestamps change. The importer's own tests prove this, a seeded property test among them.
Projections
CSV and Excel
Both carry the same 23 columns, then one Custom Field: <name> column per risk field:
| Columns | On import |
|---|---|
| Risk Ref | informational |
| Title, Description, Category, Status, Treatment | read |
| Inherent Likelihood, Inherent Impact · Residual Likelihood, Residual Impact | read |
| Inherent Score, Inherent Level · Residual Score, Residual Level | derived; informational |
| Review Date | read |
| Risk Owner | for people: a member's name, or "Unresolved: Sam" |
| Risk Owner Email | the owner key: a member's email, or an unresolved owner's text as given, which can be a name |
| Linked Controls | control titles, for people |
| Created At | informational |
| Key | informational (the risk's key: the one a document save gave it, else its ref) |
| Controls | control keys (refs), separated by a semicolon and a space |
| Sources | counted; not stored yet |
| Treatment Decision | informational: the treatment as the app shows it, or "Not yet decided" until someone decides it. Treatment holds the stored strategy, which is what the import reads; an import never records a decision |
The file also records the workspace that wrote it: a # workspace: <id> comment line in CSV, beside # scoringMatrix: <kind>, and a Workspace row on the Excel Summary sheet.
Losses compared with JSON:
- Controls are keys, not content. A ref names a control only in the workspace that wrote it, where the importer links it. Anywhere else, or in a file that doesn't say where it came from, keys are counted as unmatched: never guessed, never created.
- Custom fields travel by column name, without their definitions (types, options).
- Sources and rationale are not stored.
- CSV cells that begin with a formula character are guarded with a leading apostrophe. The importer removes it for files it recognises as ours, and it recognises every shape our exports have produced since April 2026.
Markdown (and any table in the document's vocabulary)
The paste projection: a GitHub-flavoured Markdown table an assistant writes, saved as .md. The same table, tab-separated rows copied from it, or a CSV with these headers can also be pasted at riskregister.com/import, which shows what a save keeps before you sign in. The importer reads the first table in the file:
- Outer pipes are optional, and
<br>is a line break. \\,\|and\<are a literal backslash, pipe and<(GFM's escapes), so\<br>is text.- Short rows are padded and extra cells dropped.
- Emphasis around a header (
**Title**) is ignored.
Columns named with the document's own field names map automatically, by name and in any order:
Key · Title · Description · Category · Owner · Inherent likelihood · Inherent impact · Residual likelihood · Residual impact · Treatment · Status · Review date · Controls · Sources
The list may be followed by Custom Field: <name> columns. Key and Title must be present, and nothing outside the vocabulary. The same rule recognises a CSV or Excel sheet written with these headers.
| Key | Title | Category | Owner | Inherent likelihood | Inherent impact | Residual likelihood | Residual impact | Treatment |
| --- | --- | --- | --- | :-: | :-: | :-: | :-: | --- |
| phishing | Credential phishing | Technology | sam@example.com | 4 | 4 | 2 | 3 | mitigate |
Losses: everything the CSV projection loses, and a pasted table never says which workspace it came from. Control keys in the Controls column are therefore always counted as unmatched, never linked.
Our Markdown export (GET /api/v1/registers/{id}/export?format=md) writes this table, so it reads back:
- A heading with the register's name, a line saying what the file is, then one table with every column above, then any
Custom Field: <name>columns. - Nothing above the table can be read as a table.
Keyis the risk's key as in the JSON.Owneris the owner key: a member's email, or an unresolved owner's text.Controlslists the linked controls' keys.Sourcesis empty.- Every value reads back as it was, apart from surrounding whitespace, and a line break of any kind comes back as a line feed.
- A draft says so above the table.
- The register's description and the controls' content travel in JSON, not here.
Versions
- Import: v1–v4 were flat JSON exports without a top-level
format, and all four still import. - Export: only v5 is produced.
- Changes: a change to v5 that invalidates existing documents gets a new
formatstring. The schema is regenerated with every change to the importer, so it never lags the format it describes.