Risk RegisterGuides

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.

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

FieldTypeNotes
namestring, 1–200Required.
keykey (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.
statedraft · acceptedInformational. 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.
revisioninteger ≥ 1Informational. 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.
typeenterprise · project · engagement · operational · daily · compliance · custom
scoringMatrixKindiso31000_5x5 · simple_3x3On import it must match the target register's matrix. Scores are never re-binned silently.
reviewCadencedaily · weekly · fortnightly · monthly · quarterly · annually · none
descriptionstring ≤ 5,000, or null
customFieldsobject: field name → valueInformational on import: an import lands in an existing register.
ref, idstring ≤ 64Informational.

risks[]

FieldTypeNotes
keyletters, digits and . _ : -, ≤ 100Required 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.
titlestring, 1–500Required.
descriptionstring ≤ 5,000, or null
categoryname ≤ 80Matched case-insensitively to a global or workspace category, and created if new.
owneremail or name ≤ 320, or nullMatched 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.
treatmentmitigate · accept · transfer · avoid
statusopen · under_review · closed · acceptedDefaults to open.
reviewDateYYYY-MM-DD, or null
controlsarray of control keysEach must be the key of a control in controls.
customFieldsobject: field name → valueSee Custom fields.
rationalestring ≤ 5,000Accepted 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, idstring ≤ 64Informational.

controls[]

FieldTypeNotes
keyas for risksRequired and unique.
titlestring, 1–500Required.
typepreventive · detective · corrective · directiveRequired.
descriptionstring ≤ 5,000, or nullLeft out of an export when the control's text comes from a standard that we may cite only by its reference code.
naturemanual · automated · semi_automated, or null
frequencycontinuous · daily · weekly · monthly · quarterly · annually · event_driven · ad_hoc, or null
categorystring ≤ 200, or null
libraryControlKeystring ≤ 100, or nullThe library control it was adopted from, such as is-access-01.
customFieldsobject: field name → value
ref, idstring ≤ 64Informational, 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:

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

FieldNotes
workspace{ id, name? }. The workspace that wrote the document; see Controls on import. Self-reported.
generatedBy{ agent?, model? }. Self-reported.
source, exportedAt, exportedByInformational.

Rules JSON Schema cannot express

The importer enforces these and names the field path when one fails:

  1. Risk keys are unique, and control keys are unique.
  2. Every key in a risk's controls is the key of a control in controls.
  3. 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.

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:

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:

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:

  1. Same workspace. If meta.workspace.id is the importing workspace, the control with that id is used, if the workspace can see it. A re-import therefore links the controls the workspace already has instead of copying them.
  2. The same library control. If libraryControlKey names a library control the workspace has adopted, its oldest adoption is used.
  3. 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:

ColumnsOn import
Risk Refinformational
Title, Description, Category, Status, Treatmentread
Inherent Likelihood, Inherent Impact · Residual Likelihood, Residual Impactread
Inherent Score, Inherent Level · Residual Score, Residual Levelderived; informational
Review Dateread
Risk Ownerfor people: a member's name, or "Unresolved: Sam"
Risk Owner Emailthe owner key: a member's email, or an unresolved owner's text as given, which can be a name
Linked Controlscontrol titles, for people
Created Atinformational
Keyinformational (the risk's key: the one a document save gave it, else its ref)
Controlscontrol keys (refs), separated by a semicolon and a space
Sourcescounted; not stored yet
Treatment Decisioninformational: 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:

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:

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:

Versions