From e3cc8aafa87212a56a26971c137f2da9ed308e05 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc Date: Mon, 7 Sep 2026 08:48:05 +0200 Subject: [PATCH 1/2] Draft MEDUI-DEC-007: rendered-check profiles and evidence identity (Proposed) Distils MedUI #15. The two consumers implement non-interchangeable rendered checks under one MEDUI-DEC-004 golden-selection rule, and no case can catch the divergence. Records the direction - separate versioned rendered-observation profiles, explicit check families, a derived report identity, an independently-derived obligation set - and the questions a maintainer must settle before adoption. No allocated identifiers, no schema change; Status is Proposed. --- .../MEDUI-DEC-007-rendered-check-profiles.md | 49 +++++++++++++++++++ decisions/README.md | 1 + 2 files changed, 50 insertions(+) create mode 100644 decisions/MEDUI-DEC-007-rendered-check-profiles.md diff --git a/decisions/MEDUI-DEC-007-rendered-check-profiles.md b/decisions/MEDUI-DEC-007-rendered-check-profiles.md new file mode 100644 index 0000000..be94bda --- /dev/null +++ b/decisions/MEDUI-DEC-007-rendered-check-profiles.md @@ -0,0 +1,49 @@ +# MEDUI-DEC-007: Rendered-check profiles and evidence identity + +Status: Proposed + +Raised by [MedUI #15](https://github.com/Compliatory/MedUI/issues/15) from a comparison of the +MduX and TrustSC verifiers. This record states a direction and the questions a maintainer must +settle; it does not change an accepted contract, and nothing here is an allocated `MEDUI-` +identifier until this record is Accepted. + +## Problem + +`MEDUI-DEC-004` keeps golden *selection* in the contract but leaves the rendered check itself to +each implementation. The two consumers diverge in ways a case cannot currently catch: bounds as +measured-extent equality versus expanded-region containment; tint composition with a bounded +per-composite rounding allowance versus an exact `SHA-256` of packed `RGBA8`; a missing baseline +treated as pass versus fail. "Passes the golden check" therefore names different obligations in +each repository. + +## Direction + +1. Keep golden selection in the language contract. Define **rendered-observation profiles** + separately, each with an immutable ID and version, so a report names which check it ran. +2. Distinguish the check families explicitly — extent equality, ink containment, tint + composition, exact hash — rather than one fuzzy "colour check". Each profile fixes its pixel + format, coordinate space, background and chrome resolution, empty-content policy, sampling + region, and arithmetic and rounding. Exact hashes carry zero tolerance and a named backend. +3. Give an evidence report a derived identity: contract SHA; producer, version and source SHA; + profile and version; screen artifact and asset digests; screen and node; explicit locale or + locale-free scope; scenario digest or `static`; capture or frame; check ID and version; + backend and rendering configuration where relevant. Outcomes are `pass`, `fail`, + `unsupported`, `not-run` and `missing-baseline` — distinct, and an omitted obligation cannot + read as success. +4. The required obligation set is derived independently of the report, so a producer that skips + a check cannot pass by silence. + +## Open questions for the maintainer + +- Are these profiles part of MedUI, or a sibling contract that MedUI only references? +- Which profiles ship first, and does either current consumer's behaviour become one of them + unchanged, or do both migrate? +- Do capability and manifest schemas gain profile keys, and if so under which minor? +- What is the migration path so existing `ColorHash` evidence is not silently reinterpreted? + +## Rollout + +`MEDUI-DEC-004` and `MEDUI-DEC-005` remain authoritative until this record is Accepted. Adoption +would be a minor release with its own candidate corpus, passed by every implementation claiming +the affected capability before any consumer advertises a profile. Language-diagnostic ambiguities +stay with MedUI #2, #3, #4 and #8, not this record. diff --git a/decisions/README.md b/decisions/README.md index 8fb1535..10bdec1 100644 --- a/decisions/README.md +++ b/decisions/README.md @@ -6,3 +6,4 @@ - [MEDUI-DEC-004](MEDUI-DEC-004-safety-and-goldens.md) - [MEDUI-DEC-005](MEDUI-DEC-005-diagnostics-and-conformance.md) - [MEDUI-DEC-006](MEDUI-DEC-006-closed-named-values.md) +- [MEDUI-DEC-007](MEDUI-DEC-007-rendered-check-profiles.md) — Proposed From c946f01741dc239573eaa3616ab3e619abba7c93 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc Date: Mon, 7 Sep 2026 10:07:41 +0200 Subject: [PATCH 2/2] Tighten DEC-007 wording per review Follow-up to review on PR #25: - say the record allocates no *new* MEDUI- identifiers until Accepted (it does carry its own DEC id) - use "rendered-check profiles" throughout, matching the title, not a second term - drop the lone status suffix from the decisions index; status lives in the record, as with the other entries --- decisions/MEDUI-DEC-007-rendered-check-profiles.md | 8 ++++---- decisions/README.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/decisions/MEDUI-DEC-007-rendered-check-profiles.md b/decisions/MEDUI-DEC-007-rendered-check-profiles.md index be94bda..6d3db26 100644 --- a/decisions/MEDUI-DEC-007-rendered-check-profiles.md +++ b/decisions/MEDUI-DEC-007-rendered-check-profiles.md @@ -4,8 +4,8 @@ Status: Proposed Raised by [MedUI #15](https://github.com/Compliatory/MedUI/issues/15) from a comparison of the MduX and TrustSC verifiers. This record states a direction and the questions a maintainer must -settle; it does not change an accepted contract, and nothing here is an allocated `MEDUI-` -identifier until this record is Accepted. +settle; it does not change an accepted contract, and it allocates no new `MEDUI-` identifiers — +profile names, check IDs, diagnostic codes — until it is Accepted. ## Problem @@ -18,8 +18,8 @@ each repository. ## Direction -1. Keep golden selection in the language contract. Define **rendered-observation profiles** - separately, each with an immutable ID and version, so a report names which check it ran. +1. Keep golden selection in the language contract. Define **rendered-check profiles** separately, + each with an immutable ID and version, so a report names which check it ran. 2. Distinguish the check families explicitly — extent equality, ink containment, tint composition, exact hash — rather than one fuzzy "colour check". Each profile fixes its pixel format, coordinate space, background and chrome resolution, empty-content policy, sampling diff --git a/decisions/README.md b/decisions/README.md index 10bdec1..2c920ff 100644 --- a/decisions/README.md +++ b/decisions/README.md @@ -6,4 +6,4 @@ - [MEDUI-DEC-004](MEDUI-DEC-004-safety-and-goldens.md) - [MEDUI-DEC-005](MEDUI-DEC-005-diagnostics-and-conformance.md) - [MEDUI-DEC-006](MEDUI-DEC-006-closed-named-values.md) -- [MEDUI-DEC-007](MEDUI-DEC-007-rendered-check-profiles.md) — Proposed +- [MEDUI-DEC-007](MEDUI-DEC-007-rendered-check-profiles.md)