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..6d3db26 --- /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 it allocates no new `MEDUI-` identifiers — +profile names, check IDs, diagnostic codes — until it 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-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 + 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..2c920ff 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)