Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 33 additions & 4 deletions guides/numerical-risk-scoring.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,46 @@
---
title: Numerical risk scoring with an extension
status: active
last_reviewed: 2026-09-20
last_reviewed: 2026-11-17
audience: public
license: MIT
---

# Numerical risk scoring with an extension

For directly authored numeric risk degrees, use the core fields and an adopter-defined `risk_scale` in [RISK §7.26](../notations/ELEMENT_PRIMITIVES.md#726-risk--01_motivationrisks). No calculation is required. The optional worked scoring convention below instead keeps qualitative fields and stores its factors under `extensions.risk_scoring`. This guide demonstrates one optional convention using a [complete synthetic catalogue](../notations/examples/risk-scoring/README.md). It introduces no primitive fields, mandatory formula, or core arithmetic validator.
For directly authored numeric risk degrees, use the core fields and adopter-defined shared `risk_scale` or per-indicator `risk_scales` in [RISK §7.26](../notations/ELEMENT_PRIMITIVES.md#726-risk--01_motivationrisks). No calculation is required. The optional worked scoring convention below instead keeps qualitative fields and stores its factors under `extensions.risk_scoring`. This guide demonstrates one optional convention using a [complete synthetic catalogue](../notations/examples/risk-scoring/README.md). The scoring convention introduces no additional primitive fields, mandatory formula, or core arithmetic validator.

[RISK](../notations/ELEMENT_PRIMITIVES.md#726-risk--01_motivationrisks) requires `likelihood`, `impact`, `residual`, `owner_role` and nonempty `threatens`. Treatment obligations belong in `treated_by`. The [open extensions contract](../notations/CONTRACT.md#12-extensions--open-attribute-bag) accepts arbitrary nested YAML values, while defined fields retain their normal positions and constraints. The extension shares its host's admission and lifecycle.

## Direct numeric degrees and independent scales

The complete [shared-default example](../notations/examples/risk-scoring/canon/elements/01_motivation/risks/RISK-CHECKOUT-2.yaml)
uses likelihood 4 and impact 5 on the default 1–5 rating scale, with residual 8 on
an overriding 1–25 composite scale. The `checkout-ps` version `1.0` scheme below
binds residual to the supplied **after-treatment** probability rating 2 and severity
rating 4: `2 * 4 = 8`. Its raw residual 8 cannot be compared with untreated impact 5.
The formula and `residual_inputs` live in the existing `extensions.risk_scoring`
convention, not new core formula fields. Core checks the degree's applicable scale,
not the formula, input bindings or cached arithmetic.

The [independent-scales example](../notations/examples/risk-scoring/canon/elements/01_motivation/risks/RISK-CHECKOUT-3.yaml)
has no shared default. Its local **`checkout-weighted`, version `1.0`** scheme
uses a probability fraction on 0–1, severity points on 0–10 and weighted exposure
on 0–10. All three scales are explicit with distinct IDs; even equal ranges have
different meanings. Its defined formula is `probability_fraction * severity_points`,
with no rounding. Supplied after-treatment inputs 0.25 and 4.5 give residual 1.125;
they are independent conditional assumptions, not derived from the untreated
likelihood 0.4 and impact 6.5. Finite fractions are valid core degrees. This scheme
permits explicit zero: 0 times a supplied 4.5 is 0; a missing factor remains
incomplete. No universal formula or post-treatment inference follows.

For the first scheme, cached 9 beside factors 2 and 4 is locally inconsistent
even though 9 is within the residual scale. A missing factor prevents local
calculation while a stored residual still undergoes core bounds checking. Zero is
outside this scheme's rating/score bounds, unlike the second scheme. These are
illustrations of scheme-owner arithmetic, not an executable checker or evidence of
effective treatment. The original qualitative catalogue remains unchanged.

## Define the scheme before recording scores

The example's scheme is **`checkout-ps`, version `1.0`**, defined by this section. It concerns at least one checkout interruption during the stated twelve-month horizon. The probability estimate is a fraction from 0 to 1; the probability rating is an integer from 1 to 5. Severity is the estimated interruption duration if the event occurs, expressed as nonnegative hours and mapped to an integer rating from 1 to 5. Higher ratings mean more exposure.
Expand Down Expand Up @@ -55,12 +84,12 @@ Thus the required fields stay `likelihood: high`, `impact: high`, `residual: med
| Local scheme checks | The adopter's scheme owner defines checks; the risk owner supplies evidence. Check the exact scheme/version, finite estimates, bounds, integer ratings, threshold mappings, identical event/horizon across states, treatment references and evidence. Recompute both scores and reject mismatched caches. | Consistency with the local scheme, not truth of the estimates or treatment effectiveness. |
| Report derivation | The report author selects an effective RISK version and assessment, resolves the scheme definition, runs local checks and recomputes each displayed score from factors. Include scheme/version, treatment basis and evidence references in the output. | A traceable projection of the selected model inputs. Core does not generate this risk table automatically. |

A local checker should reject `probability_rating: 6`, a fractional rating, a missing factor, an unknown scheme version, a mismatched threshold mapping, or `score: 21` beside factors 4 and 5. Core pass-through of any of those extension values is not a local-check pass. A report should mark a record invalid or unscored when these checks fail, rather than silently repair the admitted record.
A local checker should reject `probability_rating: 6`, a fractional rating under this integer-only local scheme (core itself permits fractions), a missing factor, an unknown scheme version, a mismatched threshold mapping, or `score: 21` beside factors 4 and 5. Core pass-through of any of those extension values is not a local-check pass. A report should mark a record invalid or unscored when these checks fail, rather than silently repair the admitted record.

Treat stored scores as caches. Recompute on factor, scheme, horizon, evidence or treatment changes; have the accountable owner review and admit the revised assessment. Preserve lifecycle history under the [existing contract](../notations/CONTRACT.md#7-primitive-lifecycle). Reports record the source revision, assessment date and scheme version so later recalculation does not rewrite an earlier issued result.

## Compatibility and limits

The open bag is sufficient for this bounded example: it retains both assessments and evidence without changing RISK semantics. No new core field or normative scoring rule is proposed. A shared calculation contract or mandatory arithmetic validation is outside numeric authoring.
The open bag is sufficient for this bounded example: it retains both assessments and evidence without changing RISK semantics. The per-indicator core scale contract controls bounds, not scoring arithmetic. A shared calculation contract or mandatory arithmetic validation is outside numeric authoring.

The guide and catalogue are documentation/source examples. Their fictional admission and evidence records do not certify an operating system. Arithmetic checks, schema checks, implementation support and a published release are separate claims; passing one does not establish the others. See the [example's verification notes](../notations/examples/risk-scoring/README.md#verification) for the concrete evaluation.
8 changes: 8 additions & 0 deletions notations/CONTRACT.md
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,14 @@ The **superseded-state read** on a `VERIFICATION` carrying `verified_on` — the

Core carries a dedicated **`RISK`** element type ([ELEMENT_PRIMITIVES.md](ELEMENT_PRIMITIVES.md) §7.26) — a projected event, distinct from `ASSESSMENT`'s dated finding about the present state of a `DRIVER`. `RISK` has no ArchiMate counterpart: ArchiMate 3.x itself has no risk element (vocabulary rule, 2026-07-30 decision).

Numeric RISK degrees use an optional shared `risk_scale` default and optional
complete per-indicator `risk_scales` overrides, as specified in §7.26 of that
primitive specification. Override presence selects the entire scale for that
indicator; invalid supplied scales fail even when unused. Existing qualitative
and shared-scale records retain their interpretation. An override-aware consumer
must implement the contract rather than silently ignore the mapping. Scale
declarations do not supply a scoring engine or prove treatment effectiveness.

Before `RISK` existed, this section documented the only way core could express risk: the Open Group's *Risk and Security Overlay* (ArchiMate/SABSA), which expresses risk entirely through the motivation layer using primitives that already existed in this core. That mapping is **unchanged and remains valid** — `ASSESSMENT` keeps its present meaning and is not overloaded — for a repository that prefers to express risk this way instead of, or alongside, `RISK`:

| Overlay concept | Core primitive |
Expand Down
65 changes: 54 additions & 11 deletions notations/ELEMENT_PRIMITIVES.md
Original file line number Diff line number Diff line change
Expand Up @@ -865,26 +865,40 @@ There is no ArchiMate counterpart for `RISK`: ArchiMate 3.x has no risk element
| `notation` | yes | string | Fixed value `risk`. |
| `likelihood` | **yes** | string or number | `low` \| `medium` \| `high` — the projected probability of the event occurring. |
| `impact` | **yes** | string or number | `low` \| `medium` \| `high` — the severity if the event occurs, before treatment. |
| `residual` | **yes** | string or number | `low` \| `medium` \| `high` — the exposure judged to remain once the `treated_by` obligations (if any) are in effect. Distinct from `impact`: `impact` is the untreated severity; `residual` is the post-treatment judgement. A `residual` lower than `impact` with an empty `treated_by` is an unfounded claim, flagged by `RISK-COVERAGE-001` (§9). |
| `risk_scale` | for numeric degrees | mapping | Adopter-defined ordinal scale: nonempty `id`, finite `min` and `max` with `min < max`, and `direction: higher` or `lower` (which direction means more risk). Applies to all numeric degrees on this record. |
| `residual` | **yes** | string or number | `low` \| `medium` \| `high`, or a numeric degree — the exposure judged to remain once the `treated_by` obligations (if any) are in effect. `impact` is untreated severity; `residual` is remaining exposure, potentially a composite on a different scale. Their raw values do not establish an ordering or treatment effectiveness. `RISK-COVERAGE-001` (§9) warns on absent/empty `treated_by`, independently of the values. |
| `risk_scale` | conditional | mapping | Optional shared default for numeric degrees without an indicator override. A complete scale has a nonempty string `id`, finite numeric `min` and `max` with `min < max`, and `direction: higher` or `lower` (which direction means more risk). |
| `risk_scales` | no | mapping | Optional overrides keyed only by `likelihood`, `impact`, and/or `residual`. Each supplied entry is a complete scale of the same shape as `risk_scale`. An override replaces the whole default for that indicator; fields are never merged. |
| `owner_role` | **yes** | string | `ROLE-…` accountable for tracking and treating this risk. |
| `threatens` | **yes** | list | Typed IDs of the elements this risk threatens — commonly `DRIVER-…`, but any core element the risk bears on. Non-empty. |
| `treated_by` | no | list | `REQUIREMENT-…` / `CONSTRAINT-…` IDs — the treatment obligations that address this risk. Absent ⇒ untreated (`RISK-COVERAGE-001`). |
| `description` | recommended | string | One-paragraph elaboration of the projected event itself — what would happen, not a finding about what already has. |

**Numeric degrees.** Each of `likelihood`, `impact`, and `residual` accepts either
its existing qualitative value or a finite number within the inclusive bounds of
`risk_scale`. The adopter chooses the scale; integers and fractions are allowed.
A number requires the scale above. Validate a supplied scale even when all degrees
are qualitative. Booleans, numeric strings, null, nonfinite values and values
outside the scale are not numeric degrees. Required values remain required;
unknown is never replaced by zero. Zero is valid if included by the declared bounds.
its applicable scale. The adopter chooses each scale; integers and fractions are
allowed. Select the scale by **key presence**: if `risk_scales` contains the
indicator's key, use that complete override; otherwise use `risk_scale`. An invalid
or null override is an error, never permission to fall back. Overrides affect only
their named indicators. `{}` is a no-op; all three numeric indicators can use
overrides without a shared default. A numeric indicator with neither override nor
default fails `RISK-002`.

Validate every supplied scale, including unused defaults and overrides on fully
qualitative records. A supplied null/non-mapping `risk_scales`, unknown indicator
key, incomplete scale, nonnumeric/nonfinite bound, `min >= max`, empty/non-string
ID, or direction other than `higher`/`lower` fails `RISK-002`. Boolean bounds are
not numbers. Duplicate YAML keys are rejected at parsing, not resolved by choosing
the first or last value. Absent/null required degrees fail `RISK-001`; booleans,
numeric strings, other strings, nonfinite numbers and out-of-range numbers fail
`RISK-002`. Unknown is never replaced by zero; zero is valid within the bounds.

The scale ID identifies the adopter's documented meaning; a changed meaning,
bounds or direction requires a new scale ID. No probability, money, factor formula,
automatic qualitative mapping or arithmetic calculation is implied. A renderer
shows the authored number and scale identity/bounds/direction. Do not compare or
aggregate unlike scales, or infer a mapping between qualitative and numeric values.
shows the authored number and applicable scale identity/bounds/direction. Direction
is metadata, not a transformation. Equal numeric ranges do not establish equal
meaning. Do not compare or aggregate unlike scales, compare a factor with a
composite raw value, or infer a mapping between qualitative and numeric values.
A lower residual number is not evidence that treatment was implemented.

```yaml
Expand All @@ -898,6 +912,35 @@ risk_scale:
direction: higher
```

For factor ratings on 1–5 and a residual composite on 1–25, retain the shared
default and add `risk_scales.residual: {id: checkout-ps-score-v1, min: 1, max: 25,
direction: higher}`. See the [complete numeric examples](examples/risk-scoring/README.md#numeric-degree-examples)
for this case and independent scales without a default, with declared local
scheme/version/formula and actual after-treatment input bindings. A stored formula
is neither evaluated nor arithmetically validated by core. Missing inputs remain
incomplete; no untreated factor is silently reused as a post-treatment factor.

| Input condition | Contract outcome |
| --- | --- |
| Number at either inclusive bound, finite fraction, or zero within bounds | Valid numeric degree with an applicable valid scale |
| One override plus shared default | Only the named indicator uses the override |
| All numeric indicators have complete overrides, no default | Valid; a shared scale is unnecessary |
| Empty override mapping and valid shared scale | Same interpretation as shared-scale authoring |
| Qualitative/shared/mixed degrees with all supplied scales valid | Retain their existing interpretation |
| Missing/null required degree | `RISK-001` |
| Numeric degree with no applicable scale, invalid degree or outside bounds | `RISK-002` |
| Malformed/null/incomplete default or override, even unused | `RISK-002`; no fallback or property merging |
| Unknown indicator key or malformed override container | `RISK-002` |
| Duplicate YAML key | Parsing refusal before RISK validation |
| Absent/empty `treated_by`, regardless of scale or degree | `RISK-COVERAGE-001` warning |

These are normative expectations, not a claim that a particular released validator
implements them. Existing qualitative and shared-scale records keep their meaning.
An older consumer that ignores `risk_scales` has not implemented this contract and
must not claim override-aware validation or display. Specification delivery,
consumer implementation and package release are separate; no new version pin is
implied by this section.

**`threatens` and `treated_by` are inline, not first-class time-aware `REL`s** — consistent with `CHANGE.addresses` (§7.3) and the `REGISTRY` row references (§7.20). A risk re-scoped to threaten a different element, or re-treated by a different obligation, is captured by versioning the `RISK` element itself (`valid_to` the old, admit a new), not by relation re-binding.

```yaml
Expand Down Expand Up @@ -1238,8 +1281,8 @@ Element-primitive-specific rules. The shared header (`HDR-001..004`, [CONTRACT.m
| `METRIC-004` | error | `owner_role` does not resolve to an admitted `ROLE` in canon. |
| `ORG-001` | error | A catalogue contains more than one valid `ORGANIZATION` element with overlapping validity windows (valid_from ≤ now ≤ valid_to across two or more records). At most one valid `ORGANIZATION` may exist at any given date; multiple simultaneous statementsof the organisation's identity are forbidden. |
| `ORG-002` | error | An `ORGANIZATION` element carries neither a `mission` nor a `vision` field. At least one MUST be present. |
| `RISK-001` | error | A `RISK` element is missing `id`, `name`, or any required envelope field; or `id` does not match `RISK-[<middle>-]<INTEGER>`; or a required per-TYPE field (`likelihood`, `impact`, `residual`, `owner_role`, `threatens`) is missing. |
| `RISK-002` | error | `likelihood`, `impact`, or `residual` is neither `low`/`medium`/`high` nor a finite number within its declared `risk_scale`; or a required/supplied scale is malformed (§7.26). |
| `RISK-001` | error | A `RISK` element is missing `id`, `name`, or any required envelope field; or `id` does not match `RISK-[<middle>-]<INTEGER>`; or a required per-TYPE field (`likelihood`, `impact`, `residual`, `owner_role`, `threatens`) is missing (a null required degree is also missing). |
| `RISK-002` | error | A non-null `likelihood`, `impact`, or `residual` is neither `low`/`medium`/`high` nor a finite number within its applicable override/default scale; a numeric degree lacks an applicable scale; or any supplied scale/override mapping is malformed (§7.26). Missing/null required degrees remain `RISK-001`. |
| `RISK-003` | error | `threatens` is empty, or an entry does not resolve to an admitted element in canon. |
| `RISK-004` | error | A `treated_by` entry does not resolve, or does not resolve to a `REQUIREMENT` or `CONSTRAINT` in canon. |
| `RISK-COVERAGE-001` | warning | A `RISK` has an empty or absent `treated_by` — an untreated risk, the RISK-side analogue of `REQ-COVERAGE-001` ([CONTRACT.md](CONTRACT.md) §8). Unlike that cross-cutting rule, this check reads only the `RISK` element's own field — no catalogue scan required. |
Expand Down
Loading
Loading