diff --git a/guides/numerical-risk-scoring.md b/guides/numerical-risk-scoring.md index 9e9304b5..3265af55 100644 --- a/guides/numerical-risk-scoring.md +++ b/guides/numerical-risk-scoring.md @@ -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. @@ -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. diff --git a/notations/CONTRACT.md b/notations/CONTRACT.md index a84ccfa4..7beebb5b 100644 --- a/notations/CONTRACT.md +++ b/notations/CONTRACT.md @@ -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 | diff --git a/notations/ELEMENT_PRIMITIVES.md b/notations/ELEMENT_PRIMITIVES.md index ec052f64..e496df7c 100644 --- a/notations/ELEMENT_PRIMITIVES.md +++ b/notations/ELEMENT_PRIMITIVES.md @@ -865,8 +865,9 @@ 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`). | @@ -874,17 +875,30 @@ There is no ArchiMate counterpart for `RISK`: ArchiMate 3.x has no risk element **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 @@ -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 @@ -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-[-]`; 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-[-]`; 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. | diff --git a/notations/examples/risk-scoring/README.md b/notations/examples/risk-scoring/README.md index 5d9e4e81..42d1243c 100644 --- a/notations/examples/risk-scoring/README.md +++ b/notations/examples/risk-scoring/README.md @@ -2,10 +2,27 @@ This example accompanies the [numerical risk scoring guide](../../../guides/numerical-risk-scoring.md). Model authors can copy its extension structure and replace the scheme, evidence and judgements with their own. All records, dates, admission gates and evidence are fictional; `example: true` marks the model elements. -The catalogue contains one [RISK](canon/elements/01_motivation/risks/RISK-CHECKOUT-1.yaml), its threatened [DRIVER](canon/elements/01_motivation/factors/DRIVER-CHECKOUT-1.yaml), accountable [ROLE](canon/elements/02_business/roles/ROLE-CHECKOUT-1.yaml), and treatment [REQUIREMENT](canon/elements/01_motivation/requirements/REQUIREMENT-FAILOVER-1.yaml). No external catalogue is needed to resolve those IDs. The relative extension `definition` reference resolves from the RISK file to the guide; update it when copying the example. +The original qualitative example is [RISK](canon/elements/01_motivation/risks/RISK-CHECKOUT-1.yaml). The catalogue also contains its threatened [DRIVER](canon/elements/01_motivation/factors/DRIVER-CHECKOUT-1.yaml), accountable [ROLE](canon/elements/02_business/roles/ROLE-CHECKOUT-1.yaml), and treatment [REQUIREMENT](canon/elements/01_motivation/requirements/REQUIREMENT-FAILOVER-1.yaml). No external catalogue is needed to resolve those IDs. The relative extension `definition` reference resolves from the RISK file to the guide; update it when copying the example. Both treatment states belong to one assessment dated 2026-09-20, concerning 2026-10-01 through 2027-09-30. They are counterfactual estimates for the same event and horizon, not two chronological observations. The post-treatment estimate is conditional. The scores are `4 * 5 = 20` and `2 * 4 = 8`; the required qualitative fields remain high/high/medium under the guide's optional mapping. +## Numeric-degree examples + +- [RISK-CHECKOUT-2](canon/elements/01_motivation/risks/RISK-CHECKOUT-2.yaml): + shared 1–5 default for likelihood/impact, residual-only 1–25 override; supplied + after-treatment inputs 2 and 4 give the local composite 8. +- [RISK-CHECKOUT-3](canon/elements/01_motivation/risks/RISK-CHECKOUT-3.yaml): + independent probability, severity and exposure scales with no default; fractional + inputs 0.25 and 4.5 give 1.125. Zero is allowed by this local scheme's bounds. + +Both are complete synthetic records sharing the catalogue's existing role, driver +and treatment requirement. They retain explicit admission/lifecycle context and +scheme/version/formula/input bindings. Their guide-relative definition resolves +from each file. No reference or admission asserts real operational acceptance. +The [guide](../../../guides/numerical-risk-scoring.md#direct-numeric-degrees-and-independent-scales) +distinguishes factor ratings, composites, missing inputs and locally inconsistent +cached scores. No arithmetic checker is shipped. + ## Verification From the repository root, run `node scripts/check-notations.mjs` for documentation invariants. A repository validator can inspect the catalogue with: @@ -14,9 +31,13 @@ From the repository root, run `node scripts/check-notations.mjs` for documentati npx @transitrix/cli@2.9.2 validate --scope=repo --root notations/examples/risk-scoring --json ``` -Review the exact validator's coverage as well as its result. A successful core validation does not validate the shape, bounds, evidence or arithmetic nested in `extensions.risk_scoring`. The guide defines the separate local checks and report derivation responsibilities. No local scheme checker is bundled with this example. +The command above is historical tooling guidance, not override-support evidence. +Consumers must support the per-indicator contract before validating the expanded +catalogue; an old consumer ignoring the mapping does not implement it. No package +version is promised by these source examples. Review the exact validator's coverage +as well as its result. A successful core validation does not validate the shape, bounds, evidence or arithmetic nested in `extensions.risk_scoring`. The guide defines the separate local checks and report derivation responsibilities. No local scheme checker is bundled with this example. -Bounded evaluation with CLI 2.9.2 produced these results: +Historical evaluation of the original four-record qualitative catalogue with CLI 2.9.2 produced these results (not a run against the added numeric examples): | Input | Result | | --- | --- | diff --git a/notations/examples/risk-scoring/canon/elements/01_motivation/risks/RISK-CHECKOUT-2.yaml b/notations/examples/risk-scoring/canon/elements/01_motivation/risks/RISK-CHECKOUT-2.yaml new file mode 100644 index 00000000..886aa6ac --- /dev/null +++ b/notations/examples/risk-scoring/canon/elements/01_motivation/risks/RISK-CHECKOUT-2.yaml @@ -0,0 +1,56 @@ +# Synthetic teaching example; no operational claim. +notation: risk +id: "RISK-CHECKOUT-2" +name: "Checkout interruption during a dependency outage" +description: >- + A dependency outage may interrupt checkout. The residual estimate assumes + the failover obligation is in effect; the evidence and all dates are fictional. +likelihood: 4 +impact: 5 +residual: 8 +risk_scale: + id: checkout-rating-1-to-5-v1 + min: 1 + max: 5 + direction: higher +risk_scales: + residual: + id: checkout-ps-score-v1 + min: 1 + max: 25 + direction: higher +owner_role: "ROLE-CHECKOUT-1" +threatens: ["DRIVER-CHECKOUT-1"] +treated_by: ["REQUIREMENT-FAILOVER-1"] +extensions: + risk_scoring: + scheme: "checkout-ps" + version: "1.0" + definition: "../../../../../../../guides/numerical-risk-scoring.md" + formula: "probability_rating * severity_rating" + residual_inputs: + - "after_treatment.probability_rating" + - "after_treatment.severity_rating" + assessment_date: "2026-09-20" + assessor_role: "ROLE-CHECKOUT-1" + horizon: "2026-10-01/2027-09-30" + event: "At least one checkout interruption in the horizon" + after_treatment: + treatment_refs: ["REQUIREMENT-FAILOVER-1"] + basis: "synthetic conditional estimate, not verified treatment" + probability_rating: 2 + severity_rating: 4 + score: 8 + evidence: + reference: "synthetic-conditional-factors" + note: "Fictional supplied inputs; no inference from untreated factors." +example: true +zone: canon +admitted_at: "2026-09-20" +admitted_by: "example-author" +gate_checks: + uniqueness: pass + consistency: pass + completeness: pass +valid_from: "2026-09-20" +valid_to: null diff --git a/notations/examples/risk-scoring/canon/elements/01_motivation/risks/RISK-CHECKOUT-3.yaml b/notations/examples/risk-scoring/canon/elements/01_motivation/risks/RISK-CHECKOUT-3.yaml new file mode 100644 index 00000000..febbe214 --- /dev/null +++ b/notations/examples/risk-scoring/canon/elements/01_motivation/risks/RISK-CHECKOUT-3.yaml @@ -0,0 +1,61 @@ +# Synthetic teaching example; no operational claim. +notation: risk +id: "RISK-CHECKOUT-3" +name: "Checkout interruption during a dependency outage" +description: >- + A dependency outage may interrupt checkout. The residual estimate assumes + the failover obligation is in effect; the evidence and all dates are fictional. +likelihood: 0.4 +impact: 6.5 +residual: 1.125 +risk_scales: + likelihood: + id: checkout-probability-v1 + min: 0 + max: 1 + direction: higher + impact: + id: checkout-severity-0-to-10-v1 + min: 0 + max: 10 + direction: higher + residual: + id: checkout-weighted-exposure-v1 + min: 0 + max: 10 + direction: higher +owner_role: "ROLE-CHECKOUT-1" +threatens: ["DRIVER-CHECKOUT-1"] +treated_by: ["REQUIREMENT-FAILOVER-1"] +extensions: + risk_scoring: + scheme: "checkout-weighted" + version: "1.0" + definition: "../../../../../../../guides/numerical-risk-scoring.md" + formula: "probability_fraction * severity_points" + residual_inputs: + - "after_treatment.probability_fraction" + - "after_treatment.severity_points" + assessment_date: "2026-09-20" + assessor_role: "ROLE-CHECKOUT-1" + horizon: "2026-10-01/2027-09-30" + event: "At least one checkout interruption in the horizon" + after_treatment: + treatment_refs: ["REQUIREMENT-FAILOVER-1"] + basis: "synthetic conditional estimate, not verified treatment" + probability_fraction: 0.25 + severity_points: 4.5 + score: 1.125 + evidence: + reference: "synthetic-conditional-factors" + note: "Fictional supplied inputs; no inference from untreated factors." +example: true +zone: canon +admitted_at: "2026-09-20" +admitted_by: "example-author" +gate_checks: + uniqueness: pass + consistency: pass + completeness: pass +valid_from: "2026-09-20" +valid_to: null diff --git a/notations/vocabulary.yaml b/notations/vocabulary.yaml index 5f0510d4..9d966fe2 100644 --- a/notations/vocabulary.yaml +++ b/notations/vocabulary.yaml @@ -1488,6 +1488,8 @@ rule_codes: severity: error spec: notations/ELEMENT_PRIMITIVES.md RISK-002: + # Indicator-key overrides replace the shared default; validate even unused scales. + # Normative shape, precedence and refusal cases: ELEMENT_PRIMITIVES.md §7.26. severity: error spec: notations/ELEMENT_PRIMITIVES.md RISK-003: diff --git a/publish-manifest.json b/publish-manifest.json index 281b0227..52620b2e 100644 --- a/publish-manifest.json +++ b/publish-manifest.json @@ -402,6 +402,8 @@ "notations/examples/risk-scoring/canon/elements/01_motivation/factors/DRIVER-CHECKOUT-1.yaml", "notations/examples/risk-scoring/canon/elements/01_motivation/requirements/REQUIREMENT-FAILOVER-1.yaml", "notations/examples/risk-scoring/canon/elements/01_motivation/risks/RISK-CHECKOUT-1.yaml", + "notations/examples/risk-scoring/canon/elements/01_motivation/risks/RISK-CHECKOUT-2.yaml", + "notations/examples/risk-scoring/canon/elements/01_motivation/risks/RISK-CHECKOUT-3.yaml", "notations/examples/risk-scoring/canon/elements/02_business/roles/ROLE-CHECKOUT-1.yaml", "notations/examples/risk-scoring/transitrix.yaml", "notations/examples/scenarios/README.md",