From b8b05bd783f35a8700a3bf73123f15343c2636cd Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc Date: Mon, 7 Sep 2026 15:07:14 +0200 Subject: [PATCH 1/2] Define candidate rendered-check and evidence profiles --- .github/workflows/ci.yml | 1 + README.md | 1 + VERSION | 2 +- conformance/README.md | 15 ++ conformance/contracts/manifest-legacy.json | 14 ++ .../contracts/manifest-profile-duplicate.json | 24 +++ .../contracts/manifest-profile-empty.json | 15 ++ .../contracts/manifest-profile-extra.json | 21 ++ .../contracts/manifest-profile-unknown.json | 20 ++ .../contracts/manifest-profile-version.json | 20 ++ conformance/contracts/manifest-profiles.json | 24 +++ .../contracts/manifest-unknown-key.json | 15 ++ .../report-duplicate-obligation.json | 63 ++++++ .../contracts/report-extra-identity.json | 38 ++++ conformance/contracts/report-fail.json | 67 +++++++ .../contracts/report-missing-artifact.json | 66 +++++++ .../contracts/report-missing-assets.json | 66 +++++++ .../contracts/report-missing-backend.json | 66 +++++++ .../contracts/report-missing-baseline.json | 67 +++++++ .../contracts/report-missing-capture.json | 66 +++++++ .../contracts/report-missing-check.json | 63 ++++++ .../report-missing-configuration.json | 66 +++++++ .../contracts/report-missing-contract.json | 66 +++++++ .../contracts/report-missing-frame.json | 66 +++++++ .../contracts/report-missing-locale.json | 66 +++++++ .../contracts/report-missing-node.json | 66 +++++++ .../contracts/report-missing-producer.json | 62 ++++++ .../contracts/report-missing-profile.json | 63 ++++++ .../contracts/report-missing-scenario.json | 66 +++++++ .../contracts/report-missing-screen.json | 66 +++++++ conformance/contracts/report-not-run.json | 67 +++++++ conformance/contracts/report-pass.json | 67 +++++++ .../contracts/report-unknown-outcome.json | 67 +++++++ conformance/contracts/report-unsupported.json | 67 +++++++ conformance/profiles/containment-empty.json | 26 +++ conformance/profiles/containment-exact.json | 31 +++ conformance/profiles/containment-inset.json | 31 +++ conformance/profiles/containment-margin.json | 31 +++ .../profiles/containment-overflow.json | 31 +++ .../evidence-duplicate-obligation.json | 103 ++++++++++ conformance/profiles/evidence-duplicate.json | 106 ++++++++++ conformance/profiles/evidence-empty.json | 20 ++ conformance/profiles/evidence-fail.json | 80 ++++++++ .../profiles/evidence-missing-baseline.json | 80 ++++++++ conformance/profiles/evidence-not-run.json | 80 ++++++++ conformance/profiles/evidence-omitted.json | 47 +++++ conformance/profiles/evidence-pass.json | 80 ++++++++ conformance/profiles/evidence-unexpected.json | 50 +++++ .../profiles/evidence-unsupported.json | 80 ++++++++ conformance/profiles/extent-empty.json | 25 +++ conformance/profiles/extent-exact.json | 30 +++ conformance/profiles/extent-inset.json | 30 +++ conformance/profiles/extent-offset.json | 30 +++ conformance/profiles/extent-overflow.json | 30 +++ conformance/profiles/hash-backend.json | 99 ++++++++++ conformance/profiles/hash-crop.json | 99 ++++++++++ conformance/profiles/hash-empty.json | 99 ++++++++++ conformance/profiles/hash-match.json | 99 ++++++++++ conformance/profiles/hash-mismatch.json | 99 ++++++++++ conformance/profiles/hash-missing.json | 99 ++++++++++ conformance/profiles/hash-outside.json | 99 ++++++++++ conformance/profiles/identity-artifact.json | 77 ++++++++ conformance/profiles/identity-assets.json | 77 ++++++++ conformance/profiles/identity-backend.json | 77 ++++++++ conformance/profiles/identity-capture.json | 77 ++++++++ conformance/profiles/identity-check.json | 77 ++++++++ .../profiles/identity-configuration.json | 77 ++++++++ conformance/profiles/identity-contract.json | 77 ++++++++ conformance/profiles/identity-frame.json | 77 ++++++++ conformance/profiles/identity-key-order.json | 77 ++++++++ conformance/profiles/identity-locale.json | 77 ++++++++ conformance/profiles/identity-node.json | 77 ++++++++ conformance/profiles/identity-producer.json | 77 ++++++++ conformance/profiles/identity-scenario.json | 77 ++++++++ conformance/profiles/identity-screen.json | 77 ++++++++ conformance/profiles/tint-background.json | 50 +++++ conformance/profiles/tint-blend.json | 50 +++++ conformance/profiles/tint-empty.json | 25 +++ conformance/profiles/tint-exact.json | 38 ++++ conformance/profiles/tint-missing.json | 34 ++++ conformance/profiles/tint-no-full-tint.json | 38 ++++ conformance/profiles/tint-one-round.json | 50 +++++ conformance/profiles/tint-one-too-far.json | 50 +++++ conformance/profiles/tint-two-round.json | 50 +++++ conformance/profiles/tint-two-too-far.json | 50 +++++ conformance/profiles/tint-wrong.json | 50 +++++ .../MEDUI-DEC-007-rendered-check-profiles.md | 24 +-- governance/versioning.md | 17 +- profiles/registry.json | 24 +++ schemas/case.schema.json | 2 +- schemas/consumer-manifest.schema.json | 50 ++++- schemas/contract-case.schema.json | 35 ++++ schemas/diagnostic.schema.json | 2 +- schemas/evidence.schema.json | 186 ++++++++++++++++++ schemas/profile-case.schema.json | 76 +++++++ spec/profiles.md | 89 +++++++++ tools/schema_check.py | 111 +++++++++++ tools/test_schema_check.py | 64 ++++++ tools/test_validate.py | 63 ++++++ tools/validate.py | 57 +++++- 100 files changed, 5643 insertions(+), 23 deletions(-) create mode 100644 conformance/contracts/manifest-legacy.json create mode 100644 conformance/contracts/manifest-profile-duplicate.json create mode 100644 conformance/contracts/manifest-profile-empty.json create mode 100644 conformance/contracts/manifest-profile-extra.json create mode 100644 conformance/contracts/manifest-profile-unknown.json create mode 100644 conformance/contracts/manifest-profile-version.json create mode 100644 conformance/contracts/manifest-profiles.json create mode 100644 conformance/contracts/manifest-unknown-key.json create mode 100644 conformance/contracts/report-duplicate-obligation.json create mode 100644 conformance/contracts/report-extra-identity.json create mode 100644 conformance/contracts/report-fail.json create mode 100644 conformance/contracts/report-missing-artifact.json create mode 100644 conformance/contracts/report-missing-assets.json create mode 100644 conformance/contracts/report-missing-backend.json create mode 100644 conformance/contracts/report-missing-baseline.json create mode 100644 conformance/contracts/report-missing-capture.json create mode 100644 conformance/contracts/report-missing-check.json create mode 100644 conformance/contracts/report-missing-configuration.json create mode 100644 conformance/contracts/report-missing-contract.json create mode 100644 conformance/contracts/report-missing-frame.json create mode 100644 conformance/contracts/report-missing-locale.json create mode 100644 conformance/contracts/report-missing-node.json create mode 100644 conformance/contracts/report-missing-producer.json create mode 100644 conformance/contracts/report-missing-profile.json create mode 100644 conformance/contracts/report-missing-scenario.json create mode 100644 conformance/contracts/report-missing-screen.json create mode 100644 conformance/contracts/report-not-run.json create mode 100644 conformance/contracts/report-pass.json create mode 100644 conformance/contracts/report-unknown-outcome.json create mode 100644 conformance/contracts/report-unsupported.json create mode 100644 conformance/profiles/containment-empty.json create mode 100644 conformance/profiles/containment-exact.json create mode 100644 conformance/profiles/containment-inset.json create mode 100644 conformance/profiles/containment-margin.json create mode 100644 conformance/profiles/containment-overflow.json create mode 100644 conformance/profiles/evidence-duplicate-obligation.json create mode 100644 conformance/profiles/evidence-duplicate.json create mode 100644 conformance/profiles/evidence-empty.json create mode 100644 conformance/profiles/evidence-fail.json create mode 100644 conformance/profiles/evidence-missing-baseline.json create mode 100644 conformance/profiles/evidence-not-run.json create mode 100644 conformance/profiles/evidence-omitted.json create mode 100644 conformance/profiles/evidence-pass.json create mode 100644 conformance/profiles/evidence-unexpected.json create mode 100644 conformance/profiles/evidence-unsupported.json create mode 100644 conformance/profiles/extent-empty.json create mode 100644 conformance/profiles/extent-exact.json create mode 100644 conformance/profiles/extent-inset.json create mode 100644 conformance/profiles/extent-offset.json create mode 100644 conformance/profiles/extent-overflow.json create mode 100644 conformance/profiles/hash-backend.json create mode 100644 conformance/profiles/hash-crop.json create mode 100644 conformance/profiles/hash-empty.json create mode 100644 conformance/profiles/hash-match.json create mode 100644 conformance/profiles/hash-mismatch.json create mode 100644 conformance/profiles/hash-missing.json create mode 100644 conformance/profiles/hash-outside.json create mode 100644 conformance/profiles/identity-artifact.json create mode 100644 conformance/profiles/identity-assets.json create mode 100644 conformance/profiles/identity-backend.json create mode 100644 conformance/profiles/identity-capture.json create mode 100644 conformance/profiles/identity-check.json create mode 100644 conformance/profiles/identity-configuration.json create mode 100644 conformance/profiles/identity-contract.json create mode 100644 conformance/profiles/identity-frame.json create mode 100644 conformance/profiles/identity-key-order.json create mode 100644 conformance/profiles/identity-locale.json create mode 100644 conformance/profiles/identity-node.json create mode 100644 conformance/profiles/identity-producer.json create mode 100644 conformance/profiles/identity-scenario.json create mode 100644 conformance/profiles/identity-screen.json create mode 100644 conformance/profiles/tint-background.json create mode 100644 conformance/profiles/tint-blend.json create mode 100644 conformance/profiles/tint-empty.json create mode 100644 conformance/profiles/tint-exact.json create mode 100644 conformance/profiles/tint-missing.json create mode 100644 conformance/profiles/tint-no-full-tint.json create mode 100644 conformance/profiles/tint-one-round.json create mode 100644 conformance/profiles/tint-one-too-far.json create mode 100644 conformance/profiles/tint-two-round.json create mode 100644 conformance/profiles/tint-two-too-far.json create mode 100644 conformance/profiles/tint-wrong.json create mode 100644 profiles/registry.json create mode 100644 schemas/contract-case.schema.json create mode 100644 schemas/evidence.schema.json create mode 100644 schemas/profile-case.schema.json create mode 100644 spec/profiles.md create mode 100644 tools/schema_check.py create mode 100644 tools/test_schema_check.py create mode 100644 tools/test_validate.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4c09ed..0d07879 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,3 +17,4 @@ jobs: with: python-version: "3.12" - run: python3 tools/validate.py + - run: python3 -m unittest discover -s tools -p 'test_*.py' diff --git a/README.md b/README.md index 5d55dbd..75d57a6 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ does not establish certification, regulatory compliance, or suitability for a pa - `decisions/` — stable shared decisions (`MEDUI-DEC-*`). - `spec/` — grammar, semantic model, and diagnostic contract. +- `profiles/` — optional candidate profile identities; definitions in `spec/profiles.md`. - `schemas/` — machine-readable conformance and diagnostic schemas. - `conformance/` — portable cases grouped by compiler phase. - `authoring/` — implementation-neutral author guidance. diff --git a/VERSION b/VERSION index 0ea3a94..0d91a54 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.0 +0.3.0 diff --git a/conformance/README.md b/conformance/README.md index 173cc90..6ec1edf 100644 --- a/conformance/README.md +++ b/conformance/README.md @@ -21,3 +21,18 @@ Codes still without one, and why: | `MEDUI-E053` | dynamic text escapes its charset | a charset model and charset-package `inputs`, the same gap that leaves `charset` resolution uncoded | Adding any of these is a contract change (a case defines an outcome), not a drop-in fixture. + +## Optional profile and schema cases + +`profiles/*.json` uses `schemas/profile-case.schema.json` and defines public observation vectors +for the optional 0.3.0 candidate profiles in [the profile contract](../spec/profiles.md). +Each rule in `profiles/registry.json` must have at least one vector; the validator rejects missing +coverage, unknown claims/rules and duplicate case IDs. Inputs use the operation and defaults +specified in that contract. Expected members are assertions; unlisted output members are not +compared. A claiming consumer must execute every vector for that profile, including rejection +vectors. This repository provides no runtime, renderer or native artifact oracle. + +`contracts/*.json` supplies valid and invalid parsed manifest/evidence documents. The repository +validator executes these schema expectations using the dependency-free schema subset checker. +Schema acceptance and profile execution are distinct: a well-formed evidence report can still +fail its completeness or identity obligations. diff --git a/conformance/contracts/manifest-legacy.json b/conformance/contracts/manifest-legacy.json new file mode 100644 index 0000000..064ade2 --- /dev/null +++ b/conformance/contracts/manifest-legacy.json @@ -0,0 +1,14 @@ +{ + "id": "MEDUI-CONTRACT-CASE-MANIFEST-LEGACY", + "schema": "consumer-manifest", + "description": "manifest legacy", + "document": { + "repository": "https://github.com/Compliatory/MedUI", + "commit": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "capabilities": [ + "syntax" + ], + "positions": "full" + }, + "valid": true +} diff --git a/conformance/contracts/manifest-profile-duplicate.json b/conformance/contracts/manifest-profile-duplicate.json new file mode 100644 index 0000000..69452dc --- /dev/null +++ b/conformance/contracts/manifest-profile-duplicate.json @@ -0,0 +1,24 @@ +{ + "id": "MEDUI-CONTRACT-CASE-MANIFEST-PROFILE-DUPLICATE", + "schema": "consumer-manifest", + "description": "manifest profile duplicate", + "document": { + "repository": "https://github.com/Compliatory/MedUI", + "commit": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "capabilities": [ + "syntax" + ], + "positions": "full", + "profiles": [ + { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/manifest-profile-empty.json b/conformance/contracts/manifest-profile-empty.json new file mode 100644 index 0000000..283073c --- /dev/null +++ b/conformance/contracts/manifest-profile-empty.json @@ -0,0 +1,15 @@ +{ + "id": "MEDUI-CONTRACT-CASE-MANIFEST-PROFILE-EMPTY", + "schema": "consumer-manifest", + "description": "manifest profile empty", + "document": { + "repository": "https://github.com/Compliatory/MedUI", + "commit": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "capabilities": [ + "syntax" + ], + "positions": "full", + "profiles": [] + }, + "valid": false +} diff --git a/conformance/contracts/manifest-profile-extra.json b/conformance/contracts/manifest-profile-extra.json new file mode 100644 index 0000000..634aee7 --- /dev/null +++ b/conformance/contracts/manifest-profile-extra.json @@ -0,0 +1,21 @@ +{ + "id": "MEDUI-CONTRACT-CASE-MANIFEST-PROFILE-EXTRA", + "schema": "consumer-manifest", + "description": "manifest profile extra", + "document": { + "repository": "https://github.com/Compliatory/MedUI", + "commit": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "capabilities": [ + "syntax" + ], + "positions": "full", + "profiles": [ + { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1, + "extra": true + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/manifest-profile-unknown.json b/conformance/contracts/manifest-profile-unknown.json new file mode 100644 index 0000000..a420534 --- /dev/null +++ b/conformance/contracts/manifest-profile-unknown.json @@ -0,0 +1,20 @@ +{ + "id": "MEDUI-CONTRACT-CASE-MANIFEST-PROFILE-UNKNOWN", + "schema": "consumer-manifest", + "description": "manifest profile unknown", + "document": { + "repository": "https://github.com/Compliatory/MedUI", + "commit": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "capabilities": [ + "syntax" + ], + "positions": "full", + "profiles": [ + { + "id": "unknown", + "version": 1 + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/manifest-profile-version.json b/conformance/contracts/manifest-profile-version.json new file mode 100644 index 0000000..985f684 --- /dev/null +++ b/conformance/contracts/manifest-profile-version.json @@ -0,0 +1,20 @@ +{ + "id": "MEDUI-CONTRACT-CASE-MANIFEST-PROFILE-VERSION", + "schema": "consumer-manifest", + "description": "manifest profile version", + "document": { + "repository": "https://github.com/Compliatory/MedUI", + "commit": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "capabilities": [ + "syntax" + ], + "positions": "full", + "profiles": [ + { + "id": "MEDUI-PROFILE-RENDERED", + "version": 2 + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/manifest-profiles.json b/conformance/contracts/manifest-profiles.json new file mode 100644 index 0000000..b00aee3 --- /dev/null +++ b/conformance/contracts/manifest-profiles.json @@ -0,0 +1,24 @@ +{ + "id": "MEDUI-CONTRACT-CASE-MANIFEST-PROFILES", + "schema": "consumer-manifest", + "description": "manifest profiles", + "document": { + "repository": "https://github.com/Compliatory/MedUI", + "commit": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "capabilities": [ + "syntax" + ], + "positions": "full", + "profiles": [ + { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + } + ] + }, + "valid": true +} diff --git a/conformance/contracts/manifest-unknown-key.json b/conformance/contracts/manifest-unknown-key.json new file mode 100644 index 0000000..1888f6e --- /dev/null +++ b/conformance/contracts/manifest-unknown-key.json @@ -0,0 +1,15 @@ +{ + "id": "MEDUI-CONTRACT-CASE-MANIFEST-UNKNOWN-KEY", + "schema": "consumer-manifest", + "description": "manifest unknown key", + "document": { + "repository": "https://github.com/Compliatory/MedUI", + "commit": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "capabilities": [ + "syntax" + ], + "positions": "full", + "profile": [] + }, + "valid": false +} diff --git a/conformance/contracts/report-duplicate-obligation.json b/conformance/contracts/report-duplicate-obligation.json new file mode 100644 index 0000000..d5914bf --- /dev/null +++ b/conformance/contracts/report-duplicate-obligation.json @@ -0,0 +1,63 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-DUPLICATE-OBLIGATION", + "schema": "evidence", + "description": "report duplicate obligation", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [] + }, + "valid": false +} diff --git a/conformance/contracts/report-extra-identity.json b/conformance/contracts/report-extra-identity.json new file mode 100644 index 0000000..c98917d --- /dev/null +++ b/conformance/contracts/report-extra-identity.json @@ -0,0 +1,38 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-EXTRA-IDENTITY", + "schema": "evidence", + "description": "report extra identity", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", + "extra": 1 + } + ], + "rows": [] + }, + "valid": false +} diff --git a/conformance/contracts/report-fail.json b/conformance/contracts/report-fail.json new file mode 100644 index 0000000..2038ba2 --- /dev/null +++ b/conformance/contracts/report-fail.json @@ -0,0 +1,67 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-FAIL", + "schema": "evidence", + "description": "report fail", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "fail" + } + ] + }, + "valid": true +} diff --git a/conformance/contracts/report-missing-artifact.json b/conformance/contracts/report-missing-artifact.json new file mode 100644 index 0000000..129dcd6 --- /dev/null +++ b/conformance/contracts/report-missing-artifact.json @@ -0,0 +1,66 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-MISSING-ARTIFACT", + "schema": "evidence", + "description": "report missing artifact", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-assets.json b/conformance/contracts/report-missing-assets.json new file mode 100644 index 0000000..4522983 --- /dev/null +++ b/conformance/contracts/report-missing-assets.json @@ -0,0 +1,66 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-MISSING-ASSETS", + "schema": "evidence", + "description": "report missing assets", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-backend.json b/conformance/contracts/report-missing-backend.json new file mode 100644 index 0000000..0ee3110 --- /dev/null +++ b/conformance/contracts/report-missing-backend.json @@ -0,0 +1,66 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-MISSING-BACKEND", + "schema": "evidence", + "description": "report missing backend", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-baseline.json b/conformance/contracts/report-missing-baseline.json new file mode 100644 index 0000000..c949646 --- /dev/null +++ b/conformance/contracts/report-missing-baseline.json @@ -0,0 +1,67 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-MISSING-BASELINE", + "schema": "evidence", + "description": "report missing baseline", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "missing-baseline" + } + ] + }, + "valid": true +} diff --git a/conformance/contracts/report-missing-capture.json b/conformance/contracts/report-missing-capture.json new file mode 100644 index 0000000..6ab3d4e --- /dev/null +++ b/conformance/contracts/report-missing-capture.json @@ -0,0 +1,66 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-MISSING-CAPTURE", + "schema": "evidence", + "description": "report missing capture", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-check.json b/conformance/contracts/report-missing-check.json new file mode 100644 index 0000000..9385509 --- /dev/null +++ b/conformance/contracts/report-missing-check.json @@ -0,0 +1,63 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-MISSING-CHECK", + "schema": "evidence", + "description": "report missing check", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-configuration.json b/conformance/contracts/report-missing-configuration.json new file mode 100644 index 0000000..165d42a --- /dev/null +++ b/conformance/contracts/report-missing-configuration.json @@ -0,0 +1,66 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-MISSING-CONFIGURATION", + "schema": "evidence", + "description": "report missing configuration", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic" + }, + "outcome": "pass" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-contract.json b/conformance/contracts/report-missing-contract.json new file mode 100644 index 0000000..652a9de --- /dev/null +++ b/conformance/contracts/report-missing-contract.json @@ -0,0 +1,66 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-MISSING-CONTRACT", + "schema": "evidence", + "description": "report missing contract", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-frame.json b/conformance/contracts/report-missing-frame.json new file mode 100644 index 0000000..4517187 --- /dev/null +++ b/conformance/contracts/report-missing-frame.json @@ -0,0 +1,66 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-MISSING-FRAME", + "schema": "evidence", + "description": "report missing frame", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-locale.json b/conformance/contracts/report-missing-locale.json new file mode 100644 index 0000000..88e00e2 --- /dev/null +++ b/conformance/contracts/report-missing-locale.json @@ -0,0 +1,66 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-MISSING-LOCALE", + "schema": "evidence", + "description": "report missing locale", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-node.json b/conformance/contracts/report-missing-node.json new file mode 100644 index 0000000..eb922f3 --- /dev/null +++ b/conformance/contracts/report-missing-node.json @@ -0,0 +1,66 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-MISSING-NODE", + "schema": "evidence", + "description": "report missing node", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-producer.json b/conformance/contracts/report-missing-producer.json new file mode 100644 index 0000000..82fad6c --- /dev/null +++ b/conformance/contracts/report-missing-producer.json @@ -0,0 +1,62 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-MISSING-PRODUCER", + "schema": "evidence", + "description": "report missing producer", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-profile.json b/conformance/contracts/report-missing-profile.json new file mode 100644 index 0000000..aa954d6 --- /dev/null +++ b/conformance/contracts/report-missing-profile.json @@ -0,0 +1,63 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-MISSING-PROFILE", + "schema": "evidence", + "description": "report missing profile", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-scenario.json b/conformance/contracts/report-missing-scenario.json new file mode 100644 index 0000000..360981d --- /dev/null +++ b/conformance/contracts/report-missing-scenario.json @@ -0,0 +1,66 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-MISSING-SCENARIO", + "schema": "evidence", + "description": "report missing scenario", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-screen.json b/conformance/contracts/report-missing-screen.json new file mode 100644 index 0000000..059954e --- /dev/null +++ b/conformance/contracts/report-missing-screen.json @@ -0,0 +1,66 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-MISSING-SCREEN", + "schema": "evidence", + "description": "report missing screen", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-not-run.json b/conformance/contracts/report-not-run.json new file mode 100644 index 0000000..ec0c13a --- /dev/null +++ b/conformance/contracts/report-not-run.json @@ -0,0 +1,67 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-NOT-RUN", + "schema": "evidence", + "description": "report not run", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "not-run" + } + ] + }, + "valid": true +} diff --git a/conformance/contracts/report-pass.json b/conformance/contracts/report-pass.json new file mode 100644 index 0000000..bc46398 --- /dev/null +++ b/conformance/contracts/report-pass.json @@ -0,0 +1,67 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-PASS", + "schema": "evidence", + "description": "report pass", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "valid": true +} diff --git a/conformance/contracts/report-unknown-outcome.json b/conformance/contracts/report-unknown-outcome.json new file mode 100644 index 0000000..2f18dee --- /dev/null +++ b/conformance/contracts/report-unknown-outcome.json @@ -0,0 +1,67 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-UNKNOWN-OUTCOME", + "schema": "evidence", + "description": "report unknown outcome", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "skipped" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-unsupported.json b/conformance/contracts/report-unsupported.json new file mode 100644 index 0000000..180d4cd --- /dev/null +++ b/conformance/contracts/report-unsupported.json @@ -0,0 +1,67 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-UNSUPPORTED", + "schema": "evidence", + "description": "report unsupported", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "unsupported" + } + ] + }, + "valid": true +} diff --git a/conformance/profiles/containment-empty.json b/conformance/profiles/containment-empty.json new file mode 100644 index 0000000..c1c0c3c --- /dev/null +++ b/conformance/profiles/containment-empty.json @@ -0,0 +1,26 @@ +{ + "id": "MEDUI-PROFILE-CASE-CONTAINMENT-EMPTY", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R02" + ], + "description": "containment empty", + "inputs": { + "operation": "rendered-check", + "check": "ink-containment", + "golden": [ + 2, + 2, + 4, + 4 + ], + "margin": 1, + "ink": null + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/containment-exact.json b/conformance/profiles/containment-exact.json new file mode 100644 index 0000000..f58f561 --- /dev/null +++ b/conformance/profiles/containment-exact.json @@ -0,0 +1,31 @@ +{ + "id": "MEDUI-PROFILE-CASE-CONTAINMENT-EXACT", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R02" + ], + "description": "containment exact", + "inputs": { + "operation": "rendered-check", + "check": "ink-containment", + "golden": [ + 2, + 2, + 4, + 4 + ], + "margin": 1, + "ink": [ + 2, + 2, + 4, + 4 + ] + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/containment-inset.json b/conformance/profiles/containment-inset.json new file mode 100644 index 0000000..d21b538 --- /dev/null +++ b/conformance/profiles/containment-inset.json @@ -0,0 +1,31 @@ +{ + "id": "MEDUI-PROFILE-CASE-CONTAINMENT-INSET", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R02" + ], + "description": "containment inset", + "inputs": { + "operation": "rendered-check", + "check": "ink-containment", + "golden": [ + 2, + 2, + 4, + 4 + ], + "margin": 1, + "ink": [ + 3, + 3, + 2, + 2 + ] + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/containment-margin.json b/conformance/profiles/containment-margin.json new file mode 100644 index 0000000..208dff0 --- /dev/null +++ b/conformance/profiles/containment-margin.json @@ -0,0 +1,31 @@ +{ + "id": "MEDUI-PROFILE-CASE-CONTAINMENT-MARGIN", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R02" + ], + "description": "containment margin", + "inputs": { + "operation": "rendered-check", + "check": "ink-containment", + "golden": [ + 2, + 2, + 4, + 4 + ], + "margin": 1, + "ink": [ + 1, + 1, + 6, + 6 + ] + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/containment-overflow.json b/conformance/profiles/containment-overflow.json new file mode 100644 index 0000000..ad87f1c --- /dev/null +++ b/conformance/profiles/containment-overflow.json @@ -0,0 +1,31 @@ +{ + "id": "MEDUI-PROFILE-CASE-CONTAINMENT-OVERFLOW", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R02" + ], + "description": "containment overflow", + "inputs": { + "operation": "rendered-check", + "check": "ink-containment", + "golden": [ + 2, + 2, + 4, + 4 + ], + "margin": 1, + "ink": [ + 0, + 1, + 7, + 6 + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/evidence-duplicate-obligation.json b/conformance/profiles/evidence-duplicate-obligation.json new file mode 100644 index 0000000..e0251af --- /dev/null +++ b/conformance/profiles/evidence-duplicate-obligation.json @@ -0,0 +1,103 @@ +{ + "id": "MEDUI-PROFILE-CASE-EVIDENCE-DUPLICATE-OBLIGATION", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E02", + "E03" + ], + "description": "evidence duplicate obligation", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/evidence-duplicate.json b/conformance/profiles/evidence-duplicate.json new file mode 100644 index 0000000..b09454c --- /dev/null +++ b/conformance/profiles/evidence-duplicate.json @@ -0,0 +1,106 @@ +{ + "id": "MEDUI-PROFILE-CASE-EVIDENCE-DUPLICATE", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E02", + "E03" + ], + "description": "evidence duplicate", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + }, + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/evidence-empty.json b/conformance/profiles/evidence-empty.json new file mode 100644 index 0000000..6f5dc9f --- /dev/null +++ b/conformance/profiles/evidence-empty.json @@ -0,0 +1,20 @@ +{ + "id": "MEDUI-PROFILE-CASE-EVIDENCE-EMPTY", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E02", + "E03" + ], + "description": "evidence empty", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [], + "rows": [] + }, + "expected": { + "outcome": "not-run" + } +} diff --git a/conformance/profiles/evidence-fail.json b/conformance/profiles/evidence-fail.json new file mode 100644 index 0000000..f1cdc8a --- /dev/null +++ b/conformance/profiles/evidence-fail.json @@ -0,0 +1,80 @@ +{ + "id": "MEDUI-PROFILE-CASE-EVIDENCE-FAIL", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E02", + "E03" + ], + "description": "evidence fail", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "fail" + } + ] + }, + "expected": { + "outcome": "fail", + "rowOutcomes": [ + "fail" + ] + } +} diff --git a/conformance/profiles/evidence-missing-baseline.json b/conformance/profiles/evidence-missing-baseline.json new file mode 100644 index 0000000..01ded7a --- /dev/null +++ b/conformance/profiles/evidence-missing-baseline.json @@ -0,0 +1,80 @@ +{ + "id": "MEDUI-PROFILE-CASE-EVIDENCE-MISSING-BASELINE", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E02", + "E03" + ], + "description": "evidence missing baseline", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "missing-baseline" + } + ] + }, + "expected": { + "outcome": "fail", + "rowOutcomes": [ + "missing-baseline" + ] + } +} diff --git a/conformance/profiles/evidence-not-run.json b/conformance/profiles/evidence-not-run.json new file mode 100644 index 0000000..a2594bf --- /dev/null +++ b/conformance/profiles/evidence-not-run.json @@ -0,0 +1,80 @@ +{ + "id": "MEDUI-PROFILE-CASE-EVIDENCE-NOT-RUN", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E02", + "E03" + ], + "description": "evidence not run", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "not-run" + } + ] + }, + "expected": { + "outcome": "fail", + "rowOutcomes": [ + "not-run" + ] + } +} diff --git a/conformance/profiles/evidence-omitted.json b/conformance/profiles/evidence-omitted.json new file mode 100644 index 0000000..0c25157 --- /dev/null +++ b/conformance/profiles/evidence-omitted.json @@ -0,0 +1,47 @@ +{ + "id": "MEDUI-PROFILE-CASE-EVIDENCE-OMITTED", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E02", + "E03" + ], + "description": "evidence omitted", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/evidence-pass.json b/conformance/profiles/evidence-pass.json new file mode 100644 index 0000000..4360c52 --- /dev/null +++ b/conformance/profiles/evidence-pass.json @@ -0,0 +1,80 @@ +{ + "id": "MEDUI-PROFILE-CASE-EVIDENCE-PASS", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E02", + "E03" + ], + "description": "evidence pass", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "pass", + "rowOutcomes": [ + "pass" + ] + } +} diff --git a/conformance/profiles/evidence-unexpected.json b/conformance/profiles/evidence-unexpected.json new file mode 100644 index 0000000..dfabeaf --- /dev/null +++ b/conformance/profiles/evidence-unexpected.json @@ -0,0 +1,50 @@ +{ + "id": "MEDUI-PROFILE-CASE-EVIDENCE-UNEXPECTED", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E02", + "E03" + ], + "description": "evidence unexpected", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/evidence-unsupported.json b/conformance/profiles/evidence-unsupported.json new file mode 100644 index 0000000..a46de03 --- /dev/null +++ b/conformance/profiles/evidence-unsupported.json @@ -0,0 +1,80 @@ +{ + "id": "MEDUI-PROFILE-CASE-EVIDENCE-UNSUPPORTED", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E02", + "E03" + ], + "description": "evidence unsupported", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "unsupported" + } + ] + }, + "expected": { + "outcome": "fail", + "rowOutcomes": [ + "unsupported" + ] + } +} diff --git a/conformance/profiles/extent-empty.json b/conformance/profiles/extent-empty.json new file mode 100644 index 0000000..bc52175 --- /dev/null +++ b/conformance/profiles/extent-empty.json @@ -0,0 +1,25 @@ +{ + "id": "MEDUI-PROFILE-CASE-EXTENT-EMPTY", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R01" + ], + "description": "extent empty", + "inputs": { + "operation": "rendered-check", + "check": "extent-equality", + "golden": [ + 2, + 2, + 4, + 4 + ], + "ink": null + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/extent-exact.json b/conformance/profiles/extent-exact.json new file mode 100644 index 0000000..6b91a88 --- /dev/null +++ b/conformance/profiles/extent-exact.json @@ -0,0 +1,30 @@ +{ + "id": "MEDUI-PROFILE-CASE-EXTENT-EXACT", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R01" + ], + "description": "extent exact", + "inputs": { + "operation": "rendered-check", + "check": "extent-equality", + "golden": [ + 2, + 2, + 4, + 4 + ], + "ink": [ + 2, + 2, + 4, + 4 + ] + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/extent-inset.json b/conformance/profiles/extent-inset.json new file mode 100644 index 0000000..74858b5 --- /dev/null +++ b/conformance/profiles/extent-inset.json @@ -0,0 +1,30 @@ +{ + "id": "MEDUI-PROFILE-CASE-EXTENT-INSET", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R01" + ], + "description": "extent inset", + "inputs": { + "operation": "rendered-check", + "check": "extent-equality", + "golden": [ + 2, + 2, + 4, + 4 + ], + "ink": [ + 3, + 3, + 2, + 2 + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/extent-offset.json b/conformance/profiles/extent-offset.json new file mode 100644 index 0000000..cdc89e4 --- /dev/null +++ b/conformance/profiles/extent-offset.json @@ -0,0 +1,30 @@ +{ + "id": "MEDUI-PROFILE-CASE-EXTENT-OFFSET", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R01" + ], + "description": "extent offset", + "inputs": { + "operation": "rendered-check", + "check": "extent-equality", + "golden": [ + 2, + 2, + 4, + 4 + ], + "ink": [ + 3, + 2, + 4, + 4 + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/extent-overflow.json b/conformance/profiles/extent-overflow.json new file mode 100644 index 0000000..d91fcde --- /dev/null +++ b/conformance/profiles/extent-overflow.json @@ -0,0 +1,30 @@ +{ + "id": "MEDUI-PROFILE-CASE-EXTENT-OVERFLOW", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R01" + ], + "description": "extent overflow", + "inputs": { + "operation": "rendered-check", + "check": "extent-equality", + "golden": [ + 2, + 2, + 4, + 4 + ], + "ink": [ + 1, + 2, + 5, + 4 + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/hash-backend.json b/conformance/profiles/hash-backend.json new file mode 100644 index 0000000..7263c59 --- /dev/null +++ b/conformance/profiles/hash-backend.json @@ -0,0 +1,99 @@ +{ + "id": "MEDUI-PROFILE-CASE-HASH-BACKEND", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R04" + ], + "description": "hash backend", + "inputs": { + "operation": "rendered-check", + "check": "rgba8-sha256", + "surface": [ + 2, + 2 + ], + "rgba8": [ + 255, + 0, + 0, + 255, + 0, + 255, + 0, + 255, + 0, + 0, + 255, + 255, + 255, + 255, + 255, + 255 + ], + "golden": [ + 0, + 0, + 2, + 2 + ], + "baseline": "c21b35e3f28e676cedf24c13575a7346682e101a2d26aad9598d0cdbcee9ee3b", + "captureIdentity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "baselineIdentity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "other", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/hash-crop.json b/conformance/profiles/hash-crop.json new file mode 100644 index 0000000..d3978df --- /dev/null +++ b/conformance/profiles/hash-crop.json @@ -0,0 +1,99 @@ +{ + "id": "MEDUI-PROFILE-CASE-HASH-CROP", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R04" + ], + "description": "hash crop", + "inputs": { + "operation": "rendered-check", + "check": "rgba8-sha256", + "surface": [ + 2, + 2 + ], + "rgba8": [ + 255, + 0, + 0, + 255, + 0, + 255, + 0, + 255, + 0, + 0, + 255, + 255, + 255, + 255, + 255, + 255 + ], + "golden": [ + 1, + 0, + 1, + 2 + ], + "baseline": "4184909747d2ab731fbfd5aba12667926dcd8dac01c41cb3f2638d92394104c8", + "captureIdentity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "baselineIdentity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/hash-empty.json b/conformance/profiles/hash-empty.json new file mode 100644 index 0000000..348765e --- /dev/null +++ b/conformance/profiles/hash-empty.json @@ -0,0 +1,99 @@ +{ + "id": "MEDUI-PROFILE-CASE-HASH-EMPTY", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R04" + ], + "description": "hash empty", + "inputs": { + "operation": "rendered-check", + "check": "rgba8-sha256", + "surface": [ + 2, + 2 + ], + "rgba8": [ + 255, + 0, + 0, + 255, + 0, + 255, + 0, + 255, + 0, + 0, + 255, + 255, + 255, + 255, + 255, + 255 + ], + "golden": [ + 0, + 0, + 0, + 0 + ], + "baseline": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "captureIdentity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "baselineIdentity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/hash-match.json b/conformance/profiles/hash-match.json new file mode 100644 index 0000000..a094658 --- /dev/null +++ b/conformance/profiles/hash-match.json @@ -0,0 +1,99 @@ +{ + "id": "MEDUI-PROFILE-CASE-HASH-MATCH", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R04" + ], + "description": "hash match", + "inputs": { + "operation": "rendered-check", + "check": "rgba8-sha256", + "surface": [ + 2, + 2 + ], + "rgba8": [ + 255, + 0, + 0, + 255, + 0, + 255, + 0, + 255, + 0, + 0, + 255, + 255, + 255, + 255, + 255, + 255 + ], + "golden": [ + 0, + 0, + 2, + 2 + ], + "baseline": "c21b35e3f28e676cedf24c13575a7346682e101a2d26aad9598d0cdbcee9ee3b", + "captureIdentity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "baselineIdentity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/hash-mismatch.json b/conformance/profiles/hash-mismatch.json new file mode 100644 index 0000000..d2ba5ee --- /dev/null +++ b/conformance/profiles/hash-mismatch.json @@ -0,0 +1,99 @@ +{ + "id": "MEDUI-PROFILE-CASE-HASH-MISMATCH", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R04" + ], + "description": "hash mismatch", + "inputs": { + "operation": "rendered-check", + "check": "rgba8-sha256", + "surface": [ + 2, + 2 + ], + "rgba8": [ + 255, + 0, + 0, + 255, + 0, + 255, + 0, + 255, + 0, + 0, + 255, + 255, + 255, + 255, + 255, + 255 + ], + "golden": [ + 0, + 0, + 2, + 2 + ], + "baseline": "0000000000000000000000000000000000000000000000000000000000000000", + "captureIdentity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "baselineIdentity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/hash-missing.json b/conformance/profiles/hash-missing.json new file mode 100644 index 0000000..5da3e69 --- /dev/null +++ b/conformance/profiles/hash-missing.json @@ -0,0 +1,99 @@ +{ + "id": "MEDUI-PROFILE-CASE-HASH-MISSING", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R04" + ], + "description": "hash missing", + "inputs": { + "operation": "rendered-check", + "check": "rgba8-sha256", + "surface": [ + 2, + 2 + ], + "rgba8": [ + 255, + 0, + 0, + 255, + 0, + 255, + 0, + 255, + 0, + 0, + 255, + 255, + 255, + 255, + 255, + 255 + ], + "golden": [ + 0, + 0, + 2, + 2 + ], + "baseline": null, + "captureIdentity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "baselineIdentity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + }, + "expected": { + "outcome": "missing-baseline" + } +} diff --git a/conformance/profiles/hash-outside.json b/conformance/profiles/hash-outside.json new file mode 100644 index 0000000..e36d902 --- /dev/null +++ b/conformance/profiles/hash-outside.json @@ -0,0 +1,99 @@ +{ + "id": "MEDUI-PROFILE-CASE-HASH-OUTSIDE", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R04" + ], + "description": "hash outside", + "inputs": { + "operation": "rendered-check", + "check": "rgba8-sha256", + "surface": [ + 2, + 2 + ], + "rgba8": [ + 255, + 0, + 0, + 255, + 0, + 255, + 0, + 255, + 0, + 0, + 255, + 255, + 255, + 255, + 255, + 255 + ], + "golden": [ + 1, + 0, + 2, + 2 + ], + "baseline": "0000000000000000000000000000000000000000000000000000000000000000", + "captureIdentity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "baselineIdentity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/identity-artifact.json b/conformance/profiles/identity-artifact.json new file mode 100644 index 0000000..36af0e2 --- /dev/null +++ b/conformance/profiles/identity-artifact.json @@ -0,0 +1,77 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-ARTIFACT", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "identity artifact", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/identity-assets.json b/conformance/profiles/identity-assets.json new file mode 100644 index 0000000..9a735d1 --- /dev/null +++ b/conformance/profiles/identity-assets.json @@ -0,0 +1,77 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-ASSETS", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "identity assets", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/identity-backend.json b/conformance/profiles/identity-backend.json new file mode 100644 index 0000000..1face76 --- /dev/null +++ b/conformance/profiles/identity-backend.json @@ -0,0 +1,77 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-BACKEND", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "identity backend", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "other", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/identity-capture.json b/conformance/profiles/identity-capture.json new file mode 100644 index 0000000..c5c147e --- /dev/null +++ b/conformance/profiles/identity-capture.json @@ -0,0 +1,77 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-CAPTURE", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "identity capture", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "other", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/identity-check.json b/conformance/profiles/identity-check.json new file mode 100644 index 0000000..47c7ff5 --- /dev/null +++ b/conformance/profiles/identity-check.json @@ -0,0 +1,77 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-CHECK", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "identity check", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "ink-containment", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/identity-configuration.json b/conformance/profiles/identity-configuration.json new file mode 100644 index 0000000..9c9e6ff --- /dev/null +++ b/conformance/profiles/identity-configuration.json @@ -0,0 +1,77 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-CONFIGURATION", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "identity configuration", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/identity-contract.json b/conformance/profiles/identity-contract.json new file mode 100644 index 0000000..43a9262 --- /dev/null +++ b/conformance/profiles/identity-contract.json @@ -0,0 +1,77 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-CONTRACT", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "identity contract", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "ffffffffffffffffffffffffffffffffffffffff", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/identity-frame.json b/conformance/profiles/identity-frame.json new file mode 100644 index 0000000..5a6649c --- /dev/null +++ b/conformance/profiles/identity-frame.json @@ -0,0 +1,77 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-FRAME", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "identity frame", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 1, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/identity-key-order.json b/conformance/profiles/identity-key-order.json new file mode 100644 index 0000000..15f9f12 --- /dev/null +++ b/conformance/profiles/identity-key-order.json @@ -0,0 +1,77 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-KEY-ORDER", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "identity key order", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", + "backend": "synthetic", + "check": { + "id": "extent-equality", + "version": 1 + }, + "frame": 0, + "capture": "capture", + "scenario": "static", + "locale": null, + "node": "node", + "screen": "screen", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/identity-locale.json b/conformance/profiles/identity-locale.json new file mode 100644 index 0000000..5301a2d --- /dev/null +++ b/conformance/profiles/identity-locale.json @@ -0,0 +1,77 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-LOCALE", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "identity locale", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": "fr-FR", + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/identity-node.json b/conformance/profiles/identity-node.json new file mode 100644 index 0000000..21c59a6 --- /dev/null +++ b/conformance/profiles/identity-node.json @@ -0,0 +1,77 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-NODE", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "identity node", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "other", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/identity-producer.json b/conformance/profiles/identity-producer.json new file mode 100644 index 0000000..41a1073 --- /dev/null +++ b/conformance/profiles/identity-producer.json @@ -0,0 +1,77 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-PRODUCER", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "identity producer", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "other", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/identity-scenario.json b/conformance/profiles/identity-scenario.json new file mode 100644 index 0000000..41ba5c1 --- /dev/null +++ b/conformance/profiles/identity-scenario.json @@ -0,0 +1,77 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-SCENARIO", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "identity scenario", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/identity-screen.json b/conformance/profiles/identity-screen.json new file mode 100644 index 0000000..e70c8f8 --- /dev/null +++ b/conformance/profiles/identity-screen.json @@ -0,0 +1,77 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-SCREEN", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "identity screen", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "other", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/tint-background.json b/conformance/profiles/tint-background.json new file mode 100644 index 0000000..9482e25 --- /dev/null +++ b/conformance/profiles/tint-background.json @@ -0,0 +1,50 @@ +{ + "id": "MEDUI-PROFILE-CASE-TINT-BACKGROUND", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R03" + ], + "description": "tint background", + "inputs": { + "operation": "rendered-check", + "check": "tint-composition", + "tint": [ + 200, + 100, + 50 + ], + "composites": 1, + "samples": [ + { + "background": [ + 100, + 100, + 100 + ], + "rgb": [ + 150, + 100, + 75 + ] + }, + { + "background": [ + 100, + 100, + 100 + ], + "rgb": [ + 200, + 100, + 50 + ] + } + ] + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/tint-blend.json b/conformance/profiles/tint-blend.json new file mode 100644 index 0000000..17febdf --- /dev/null +++ b/conformance/profiles/tint-blend.json @@ -0,0 +1,50 @@ +{ + "id": "MEDUI-PROFILE-CASE-TINT-BLEND", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R03" + ], + "description": "tint blend", + "inputs": { + "operation": "rendered-check", + "check": "tint-composition", + "tint": [ + 200, + 100, + 0 + ], + "composites": 1, + "samples": [ + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 100, + 50, + 0 + ] + }, + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 200, + 100, + 0 + ] + } + ] + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/tint-empty.json b/conformance/profiles/tint-empty.json new file mode 100644 index 0000000..d991022 --- /dev/null +++ b/conformance/profiles/tint-empty.json @@ -0,0 +1,25 @@ +{ + "id": "MEDUI-PROFILE-CASE-TINT-EMPTY", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R03" + ], + "description": "tint empty", + "inputs": { + "operation": "rendered-check", + "check": "tint-composition", + "tint": [ + 200, + 100, + 0 + ], + "composites": 1, + "samples": [] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/tint-exact.json b/conformance/profiles/tint-exact.json new file mode 100644 index 0000000..951e802 --- /dev/null +++ b/conformance/profiles/tint-exact.json @@ -0,0 +1,38 @@ +{ + "id": "MEDUI-PROFILE-CASE-TINT-EXACT", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R03" + ], + "description": "tint exact", + "inputs": { + "operation": "rendered-check", + "check": "tint-composition", + "tint": [ + 255, + 0, + 0 + ], + "composites": 1, + "samples": [ + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 255, + 0, + 0 + ] + } + ] + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/tint-missing.json b/conformance/profiles/tint-missing.json new file mode 100644 index 0000000..0eab81e --- /dev/null +++ b/conformance/profiles/tint-missing.json @@ -0,0 +1,34 @@ +{ + "id": "MEDUI-PROFILE-CASE-TINT-MISSING", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R03" + ], + "description": "tint missing", + "inputs": { + "operation": "rendered-check", + "check": "tint-composition", + "tint": null, + "composites": 1, + "samples": [ + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 0, + 0, + 0 + ] + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/tint-no-full-tint.json b/conformance/profiles/tint-no-full-tint.json new file mode 100644 index 0000000..fa7ab11 --- /dev/null +++ b/conformance/profiles/tint-no-full-tint.json @@ -0,0 +1,38 @@ +{ + "id": "MEDUI-PROFILE-CASE-TINT-NO-FULL-TINT", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R03" + ], + "description": "tint no full tint", + "inputs": { + "operation": "rendered-check", + "check": "tint-composition", + "tint": [ + 200, + 100, + 0 + ], + "composites": 1, + "samples": [ + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 100, + 50, + 0 + ] + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/tint-one-round.json b/conformance/profiles/tint-one-round.json new file mode 100644 index 0000000..b5d6a1f --- /dev/null +++ b/conformance/profiles/tint-one-round.json @@ -0,0 +1,50 @@ +{ + "id": "MEDUI-PROFILE-CASE-TINT-ONE-ROUND", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R03" + ], + "description": "tint one round", + "inputs": { + "operation": "rendered-check", + "check": "tint-composition", + "tint": [ + 200, + 100, + 0 + ], + "composites": 1, + "samples": [ + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 101, + 50, + 0 + ] + }, + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 200, + 100, + 0 + ] + } + ] + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/tint-one-too-far.json b/conformance/profiles/tint-one-too-far.json new file mode 100644 index 0000000..9b1fb0c --- /dev/null +++ b/conformance/profiles/tint-one-too-far.json @@ -0,0 +1,50 @@ +{ + "id": "MEDUI-PROFILE-CASE-TINT-ONE-TOO-FAR", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R03" + ], + "description": "tint one too far", + "inputs": { + "operation": "rendered-check", + "check": "tint-composition", + "tint": [ + 200, + 100, + 0 + ], + "composites": 1, + "samples": [ + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 103, + 50, + 0 + ] + }, + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 200, + 100, + 0 + ] + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/tint-two-round.json b/conformance/profiles/tint-two-round.json new file mode 100644 index 0000000..1422cd8 --- /dev/null +++ b/conformance/profiles/tint-two-round.json @@ -0,0 +1,50 @@ +{ + "id": "MEDUI-PROFILE-CASE-TINT-TWO-ROUND", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R03" + ], + "description": "tint two round", + "inputs": { + "operation": "rendered-check", + "check": "tint-composition", + "tint": [ + 200, + 100, + 0 + ], + "composites": 2, + "samples": [ + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 103, + 50, + 0 + ] + }, + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 200, + 100, + 0 + ] + } + ] + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/tint-two-too-far.json b/conformance/profiles/tint-two-too-far.json new file mode 100644 index 0000000..c182d25 --- /dev/null +++ b/conformance/profiles/tint-two-too-far.json @@ -0,0 +1,50 @@ +{ + "id": "MEDUI-PROFILE-CASE-TINT-TWO-TOO-FAR", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R03" + ], + "description": "tint two too far", + "inputs": { + "operation": "rendered-check", + "check": "tint-composition", + "tint": [ + 200, + 100, + 0 + ], + "composites": 2, + "samples": [ + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 104, + 50, + 0 + ] + }, + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 200, + 100, + 0 + ] + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/tint-wrong.json b/conformance/profiles/tint-wrong.json new file mode 100644 index 0000000..54a6fa5 --- /dev/null +++ b/conformance/profiles/tint-wrong.json @@ -0,0 +1,50 @@ +{ + "id": "MEDUI-PROFILE-CASE-TINT-WRONG", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R03" + ], + "description": "tint wrong", + "inputs": { + "operation": "rendered-check", + "check": "tint-composition", + "tint": [ + 200, + 100, + 0 + ], + "composites": 1, + "samples": [ + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 100, + 100, + 0 + ] + }, + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 200, + 100, + 0 + ] + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/decisions/MEDUI-DEC-007-rendered-check-profiles.md b/decisions/MEDUI-DEC-007-rendered-check-profiles.md index 39f5110..8886872 100644 --- a/decisions/MEDUI-DEC-007-rendered-check-profiles.md +++ b/decisions/MEDUI-DEC-007-rendered-check-profiles.md @@ -3,13 +3,13 @@ Status: Accepted Accepted on 2026-09-07 by Ambroise Leclerc, maintainer, by explicit instruction. -Acceptance records the architectural direction below. Profile identifiers, schemas and the -candidate conformance corpus remain delivery work; no consumer support is asserted. +Acceptance records the architectural direction below. The profile identifiers, schemas and candidate +conformance corpus are specified in [the 0.3.0 profile contract](../spec/profiles.md); no consumer +support is asserted. Raised by [MedUI #15](https://github.com/Compliatory/MedUI/issues/15) from a comparison of the -MduX and TrustSC verifiers. This record accepts the direction and identifies delivery decisions still to -settle. It allocates no new profile names, check IDs or diagnostic codes; these require -separate schema and corpus changes before consumer adoption. +MduX and TrustSC verifiers. This record accepts the direction. The linked candidate delivery allocates optional profile/check +identities with schemas and corpus; it allocates no language diagnostic codes. ## Problem @@ -37,13 +37,15 @@ each repository. 4. The required obligation set is derived independently of the report, so a producer that skips a check cannot pass by silence. -## Delivery decisions remaining +## Candidate delivery -- 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? +The profiles belong to MedUI as optional observation contracts, with no renderer implementation. +0.3.0 introduces `MEDUI-PROFILE-RENDERED/1` (four distinct checks) and +`MEDUI-PROFILE-EVIDENCE/1` (identity and independently supplied obligations), optional manifest +claims, evidence and vector schemas, and synthetic conformance cases. The definitions choose +explicit semantics; they do not assert that either consumer already implements them unchanged. +Legacy checks run alongside the candidate checks and retain their original identities/baselines. +See [profiles](../spec/profiles.md) for arithmetic, migration and the remaining consumer proof gate. ## Rollout diff --git a/governance/versioning.md b/governance/versioning.md index 1c73cbf..5d65db7 100644 --- a/governance/versioning.md +++ b/governance/versioning.md @@ -5,11 +5,21 @@ or conformance outcomes; a patch release may clarify prose or add cases that do already-defined outcome. Tags are immutable. Consumers pin the exact 40-character commit SHA. A contract change is accepted only after every implementation claiming the affected capability -passes the candidate commit. Capabilities are `syntax`, `semantics`, `layout`, and `safety`. +passes the candidate commit. Compiler capabilities are `syntax`, `semantics`, `layout`, and `safety`. Optional profile +claims are independently versioned and tested as specified in [profiles](../spec/profiles.md). -## Current line: 0.2.0 (candidate) +## Current line: 0.3.0 (candidate) -`VERSION` is `0.2.0`. The 0.2.0 line changes conformance outcomes relative to `0.1.0`: it adds +`VERSION` is `0.3.0`. This candidate extends the accepted manifest shape with optional `profiles` +and adds observation contracts, evidence schemas and synthetic cases for MEDUI-DEC-007. +Existing compiler outcomes are unchanged from 0.2.0. Each implementation claiming an affected +capability/profile must pass the exact candidate SHA before release or advertising support. +Use `0.3.0-candidate` for an informational pin label and `v0.3.0-rc.N` for candidate tags; +`v0.3.0` requires consumer proof. A repository validator result is not such proof. + +## Previous line: 0.2.0 (candidate) + +The 0.2.0 line changes conformance outcomes relative to `0.1.0`: it adds `MEDUI-E035` and `MEDUI-E054`, repoints `conformance/layout/position-requires-fixed/` from `MEDUI-E051` to `MEDUI-E054`, and states that `@safety_critical` promotes `requirement`. Under the rule above it is a **candidate** until TrustSC and MduX each pass a pinned 0.2.0 commit at the @@ -47,6 +57,7 @@ positions = "full" # or "line-only", or "none" | `commit` | yes | the exact 40-character lowercase hexadecimal commit SHA pinned in that repository. | | `capabilities` | yes | a non-empty array drawn from `syntax`, `semantics`, `layout`, `safety`. | | `positions` | yes | exactly one of `full`, `line-only`, `none`. | +| `profiles` | no | a non-empty, duplicate-free array of `{id, version}` claims from `profiles/registry.json`; omission claims no profiles. | | `version` | no | a human-readable label for the pinned revision. | `commit` alone identifies the contract. `version` is informational: it records which release a pin diff --git a/profiles/registry.json b/profiles/registry.json new file mode 100644 index 0000000..c6b00cb --- /dev/null +++ b/profiles/registry.json @@ -0,0 +1,24 @@ +{ + "status": "candidate", + "profiles": [ + { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1, + "rules": [ + "R01", + "R02", + "R03", + "R04" + ] + }, + { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1, + "rules": [ + "E01", + "E02", + "E03" + ] + } + ] +} diff --git a/schemas/case.schema.json b/schemas/case.schema.json index 85b124c..2094327 100644 --- a/schemas/case.schema.json +++ b/schemas/case.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/Compliatory/MedUI/schemas/0.2/case.schema.json", + "$id": "https://github.com/Compliatory/MedUI/schemas/0.3/case.schema.json", "title": "MedUI conformance case", "type": "object", "additionalProperties": false, diff --git a/schemas/consumer-manifest.schema.json b/schemas/consumer-manifest.schema.json index 03668bb..6a9643b 100644 --- a/schemas/consumer-manifest.schema.json +++ b/schemas/consumer-manifest.schema.json @@ -1,11 +1,16 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/Compliatory/MedUI/schemas/0.2/consumer-manifest.schema.json", + "$id": "https://github.com/Compliatory/MedUI/schemas/0.3/consumer-manifest.schema.json", "title": "MedUI consumer manifest", "description": "The parsed structure of a consumer's medui-conformance.toml. The file on disk is TOML; this describes what a harness sees after parsing it.", "type": "object", "additionalProperties": false, - "required": ["repository", "commit", "capabilities", "positions"], + "required": [ + "repository", + "commit", + "capabilities", + "positions" + ], "properties": { "repository": { "const": "https://github.com/Compliatory/MedUI", @@ -24,8 +29,45 @@ "type": "array", "minItems": 1, "uniqueItems": true, - "items": { "enum": ["syntax", "semantics", "layout", "safety"] } + "items": { + "enum": [ + "syntax", + "semantics", + "layout", + "safety" + ] + } }, - "positions": { "enum": ["full", "line-only", "none"] } + "positions": { + "enum": [ + "full", + "line-only", + "none" + ] + }, + "profiles": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "enum": [ + "MEDUI-PROFILE-RENDERED", + "MEDUI-PROFILE-EVIDENCE" + ] + }, + "version": { + "const": 1 + } + } + }, + "minItems": 1, + "uniqueItems": true + } } } diff --git a/schemas/contract-case.schema.json b/schemas/contract-case.schema.json new file mode 100644 index 0000000..bcc6038 --- /dev/null +++ b/schemas/contract-case.schema.json @@ -0,0 +1,35 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://github.com/Compliatory/MedUI/schemas/0.3/contract-case.schema.json", + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "schema", + "description", + "document", + "valid" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^MEDUI-CONTRACT-CASE-[A-Z0-9-]+$" + }, + "schema": { + "enum": [ + "consumer-manifest", + "evidence" + ] + }, + "description": { + "type": "string", + "minLength": 1 + }, + "document": { + "type": "object" + }, + "valid": { + "type": "boolean" + } + } +} diff --git a/schemas/diagnostic.schema.json b/schemas/diagnostic.schema.json index 1d11d96..c5591ff 100644 --- a/schemas/diagnostic.schema.json +++ b/schemas/diagnostic.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/Compliatory/MedUI/schemas/0.2/diagnostic.schema.json", + "$id": "https://github.com/Compliatory/MedUI/schemas/0.3/diagnostic.schema.json", "title": "MedUI diagnostic envelope", "type": "object", "additionalProperties": false, diff --git a/schemas/evidence.schema.json b/schemas/evidence.schema.json new file mode 100644 index 0000000..169e962 --- /dev/null +++ b/schemas/evidence.schema.json @@ -0,0 +1,186 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://github.com/Compliatory/MedUI/schemas/0.3/evidence.schema.json", + "type": "object", + "additionalProperties": false, + "required": [ + "obligations", + "rows" + ], + "properties": { + "obligations": { + "type": "array", + "items": { + "$ref": "#/$defs/identity" + }, + "uniqueItems": true + }, + "rows": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "identity", + "outcome" + ], + "properties": { + "identity": { + "$ref": "#/$defs/identity" + }, + "outcome": { + "enum": [ + "pass", + "fail", + "unsupported", + "not-run", + "missing-baseline" + ] + } + } + } + } + }, + "$defs": { + "identity": { + "type": "object", + "additionalProperties": false, + "required": [ + "contract", + "producer", + "profile", + "artifact", + "assets", + "screen", + "node", + "locale", + "scenario", + "capture", + "frame", + "check", + "backend", + "configuration" + ], + "properties": { + "contract": { + "type": "string", + "pattern": "^[0-9a-f]{40}$" + }, + "producer": { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "version", + "source" + ], + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "version": { + "type": "string", + "minLength": 1 + }, + "source": { + "type": "string", + "pattern": "^[0-9a-f]{40}$" + } + } + }, + "profile": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "const": "MEDUI-PROFILE-RENDERED" + }, + "version": { + "const": 1 + } + } + }, + "artifact": { + "type": "string", + "pattern": "^[0-9a-f]{64}$" + }, + "assets": { + "type": "string", + "pattern": "^[0-9a-f]{64}$" + }, + "screen": { + "type": "string", + "minLength": 1 + }, + "node": { + "type": "string", + "minLength": 1 + }, + "locale": { + "anyOf": [ + { + "type": "string", + "minLength": 1 + }, + { + "type": "null" + } + ] + }, + "scenario": { + "anyOf": [ + { + "type": "string", + "pattern": "^[0-9a-f]{64}$" + }, + { + "const": "static" + } + ] + }, + "capture": { + "type": "string", + "minLength": 1 + }, + "frame": { + "type": "integer", + "minimum": 0 + }, + "check": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "enum": [ + "extent-equality", + "ink-containment", + "tint-composition", + "rgba8-sha256" + ] + }, + "version": { + "const": 1 + } + } + }, + "backend": { + "type": "string", + "minLength": 1 + }, + "configuration": { + "type": "string", + "pattern": "^[0-9a-f]{64}$" + } + } + } + } +} diff --git a/schemas/profile-case.schema.json b/schemas/profile-case.schema.json new file mode 100644 index 0000000..b585982 --- /dev/null +++ b/schemas/profile-case.schema.json @@ -0,0 +1,76 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://github.com/Compliatory/MedUI/schemas/0.3/profile-case.schema.json", + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "profile", + "rules", + "description", + "inputs", + "expected" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^MEDUI-PROFILE-CASE-[A-Z0-9-]+$" + }, + "profile": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "enum": [ + "MEDUI-PROFILE-RENDERED", + "MEDUI-PROFILE-EVIDENCE" + ] + }, + "version": { + "const": 1 + } + } + }, + "rules": { + "type": "array", + "items": { + "enum": [ + "R01", + "R02", + "R03", + "R04", + "E01", + "E02", + "E03" + ] + }, + "minItems": 1, + "uniqueItems": true + }, + "description": { + "type": "string", + "minLength": 1 + }, + "inputs": { + "type": "object", + "required": [ + "operation" + ], + "properties": { + "operation": { + "enum": [ + "rendered-check", + "aggregate-evidence" + ] + } + } + }, + "expected": { + "type": "object" + } + } +} diff --git a/spec/profiles.md b/spec/profiles.md new file mode 100644 index 0000000..f1a53f7 --- /dev/null +++ b/spec/profiles.md @@ -0,0 +1,89 @@ +# Optional observation profiles (0.3.0 candidate) + +This is the candidate delivery of MEDUI-DEC-007. Profiles belong to this +implementation-neutral contract; platform adapters, event loops, rendering algorithms and device +actions remain in consumer repositories. Compiler capabilities and diagnostics retain their meanings. +No existing consumer is asserted to support these profiles. + +A profile claim names an ID and integer version from `profiles/registry.json`. Version 1 of an ID +is immutable once released; changed outcomes require a new version and a contract minor. Claims +are optional, independent of compiler phases, and require every case for the claimed profile. +`profiles` is an optional, nonempty array in the consumer manifest; duplicate claims are rejected. +An absent array claims nothing. An unknown ID/version or unknown manifest key is rejected. +Interaction, binding and presentation profile delivery remains separate under MEDUI-DEC-008. + +Each `conformance/profiles/*.json` file is a portable observation vector. `inputs` describes +public observations or a logical scenario, and `expected` is the required observable result. +These are not native artifacts or private object layouts. Each vector lists the numbered rules +it exercises. Repository validation checks structure and rule coverage; consumer harnesses run +the vectors. Passing repository validation alone is not profile conformance. + +### Vector protocol + +`inputs.operation` selects `rendered-check` or `aggregate-evidence`. Each operates on the supplied +public data and returns the members asserted in `expected`; omitted expected members impose no +assertion. Fixture SHA strings identify synthetic inputs; they do not attest to real consumer builds. + +## MEDUI-PROFILE-RENDERED, version 1 + +All rectangles are integer authored-pixel `[x,y,width,height]` values, nonnegative in extent, +with half-open edges. Captures are top-to-bottom tightly packed straight-alpha RGBA8. Geometry +observations name an independently measured ink rectangle (`null` for empty ink), rather than +prescribing a segmentation algorithm. Insets/expansions are explicit inputs; no hidden tolerance +or default background exists. Product captures require an identified presentation configuration. + +- **R01 — extent-equality/1.** Empty ink fails. Otherwise measured ink must equal the golden + rectangle in all four coordinates; an inset or an overflow fails. +- **R02 — ink-containment/1.** Empty ink passes. Otherwise all ink must be inside the golden + rectangle expanded by the supplied nonnegative integer margin on each side. Touching its + outer edge is allowed; extending beyond it fails. +- **R03 — tint-composition/1.** Samples are opaque RGB8 observations over an explicit RGB8 + background after either one or two identical tint-over-background composites. A single real + coverage `a` in `[0,1]` is shared by all three channels of a sample. The ideal channel after + `n` composites is `t + (b-t)*(1-a)^n`. Each observed channel may differ by at most `n/2` UNORM + units (inclusive), accounting for round-to-nearest error at each composite. Coverage can + differ between samples. Every sample must satisfy the common-coverage constraint and at least + one sample must exactly equal the tint. Empty samples, absent tint, or an impossible blend + fail. This is a conservative bounded envelope, not permission for arbitrary per-channel + fuzzy matching. Chrome must be resolved into the supplied background before sampling; a + nonuniform background is represented by a separate background for each sample. +- **R04 — rgba8-sha256/1.** Hash the bytes in the golden rectangle in row-major RGBA order, + with no padding, header or colour conversion. Comparison is exact lowercase SHA-256. Missing + baseline yields `missing-baseline`, never pass; a mismatched digest fails. Empty rectangles + hash the empty byte string. The capture must contain the entire rectangle; otherwise fail. + Profile/backend/configuration identity must match before comparison. + +These check names are immutable only in combination with this profile ID/version. Legacy +`Bounds` and `ColorHash` names are not aliases. A consumer maps legacy obligations explicitly to +one or more identified checks, runs old and candidate obligations together, retains both reports, +and rebakes changed baselines explicitly. No check may be weakened by silently relabelling it. + +## MEDUI-PROFILE-EVIDENCE, version 1 + +- **E01 — identity.** Every obligation and report row carries the full identity defined in + `schemas/evidence.schema.json`: contract SHA; producer name/version/source SHA; profile ID/version; + screen artifact and asset SHA-256 digests; screen/node; locale (explicit string or `null` for + locale-free); scenario SHA-256 or `static`; capture/frame; check ID/version; backend and rendering + configuration digest. Backend/configuration are explicit strings even for synthetic observations + (`synthetic` and the digest of the synthetic configuration). Identity comparison is fieldwise, + independent of object-key order. Different locales, scenarios, frames or configurations never + satisfy each other's obligations. +- **E02 — completeness.** The required obligation array is derived from the selected screen, + annotations, locales, scenarios and declared check mapping before report production; it is not + reconstructed from report rows. Every obligation must have exactly one matching row. Missing, + duplicate or unexpected rows fail the aggregate, including duplicate obligations. An empty + obligation set with no rows yields `not-run`, never pass. Rows against an empty obligation set + are unexpected and fail. +- **E03 — outcomes.** Row outcomes are exactly `pass`, `fail`, `unsupported`, `not-run`, and + `missing-baseline`. An aggregate passes only when the set is nonempty, exact, and every row + passes. Otherwise it fails, except for the empty-set/no-rows result above. Each original row outcome + remains visible; aggregation never converts unsupported or missing evidence into success. + +## Adoption + +0.2.0 compiler outcomes remain the baseline. New schemas and optional profiles are a 0.3.0 +candidate. An implementation first passes all its claimed compiler cases and each new profile's +vectors at an exact candidate SHA, publishes that evidence, then updates its pin/claims. Neither +the 0.2.0 nor 0.3.0 final tag is justified by repository validation. Legacy reports and pinned +corpora remain reproducible. These observations establish neither certification nor clinical +requirements. diff --git a/tools/schema_check.py b/tools/schema_check.py new file mode 100644 index 0000000..9298624 --- /dev/null +++ b/tools/schema_check.py @@ -0,0 +1,111 @@ +"""Dependency-free checker for the JSON Schema subset used by repository contracts. + +This validates documents, not consumer implementations. Unsupported schema keywords fail +closed so a new constraint cannot silently disappear from repository validation. +""" + +import re + + +KEYWORDS = { + "$schema", "$id", "$defs", "$ref", "title", "description", "type", "properties", + "additionalProperties", "required", "items", "minItems", "maxItems", "uniqueItems", + "minLength", "pattern", "minimum", "maximum", "enum", "const", "anyOf", +} + + +def check_schema(schema): + if not isinstance(schema, dict): + raise ValueError("schemas must be objects") + unknown = set(schema) - KEYWORDS + if unknown: + raise ValueError(f"unsupported schema keywords: {sorted(unknown)}") + for key in ("properties", "$defs"): + for child in schema.get(key, {}).values(): + check_schema(child) + if "items" in schema: + check_schema(schema["items"]) + for child in schema.get("anyOf", []): + check_schema(child) + + +def equal(left, right): + # JSON booleans are not numbers; Python's True == 1 is not schema equality. + if isinstance(left, bool) != isinstance(right, bool): + return False + if isinstance(left, dict) and isinstance(right, dict): + return left.keys() == right.keys() and all(equal(left[k], right[k]) for k in left) + if isinstance(left, list) and isinstance(right, list): + return len(left) == len(right) and all(equal(a, b) for a, b in zip(left, right)) + return left == right + + +def errors(value, schema, root=None, path="$"): + root = schema if root is None else root + result = [] + if "$ref" in schema: + ref = schema["$ref"] + if not ref.startswith("#/"): + raise ValueError(f"only local schema references are supported: {ref}") + target = root + for part in ref[2:].split("/"): + target = target[part.replace("~1", "/").replace("~0", "~")] + result.extend(errors(value, target, root, path)) + if "anyOf" in schema and not any( + not errors(value, child, root, path) for child in schema["anyOf"] + ): + result.append(f"{path}: no anyOf alternative matches") + kind = schema.get("type") + types = { + "object": isinstance(value, dict), "array": isinstance(value, list), + "string": isinstance(value, str), "boolean": isinstance(value, bool), + "null": value is None, + "integer": (isinstance(value, (int, float)) and not isinstance(value, bool) + and value == int(value)), + } + if kind is not None and kind not in types: + raise ValueError(f"unsupported schema type: {kind}") + if kind is not None and not types[kind]: + return result + [f"{path}: expected {kind}"] + if "const" in schema and not equal(value, schema["const"]): + result.append(f"{path}: incorrect constant") + if "enum" in schema and not any(equal(value, item) for item in schema["enum"]): + result.append(f"{path}: outside enum") + if isinstance(value, dict): + properties = schema.get("properties", {}) + for key in schema.get("required", []): + if key not in value: + result.append(f"{path}: missing {key}") + if schema.get("additionalProperties") is False: + for key in value.keys() - properties.keys(): + result.append(f"{path}: unknown {key}") + for key in value.keys() & properties.keys(): + result.extend(errors(value[key], properties[key], root, f"{path}.{key}")) + if isinstance(value, list): + if len(value) < schema.get("minItems", 0): + result.append(f"{path}: too few items") + if "maxItems" in schema and len(value) > schema["maxItems"]: + result.append(f"{path}: too many items") + if schema.get("uniqueItems") and any( + equal(item, earlier) for index, item in enumerate(value) for earlier in value[:index] + ): + result.append(f"{path}: duplicate item") + if "items" in schema: + for index, item in enumerate(value): + result.extend(errors(item, schema["items"], root, f"{path}[{index}]")) + if isinstance(value, str): + if len(value) < schema.get("minLength", 0): + result.append(f"{path}: string too short") + if "pattern" in schema and not re.search(schema["pattern"], value): + result.append(f"{path}: pattern mismatch") + if isinstance(value, (int, float)) and not isinstance(value, bool): + if "minimum" in schema and value < schema["minimum"]: + result.append(f"{path}: below minimum") + if "maximum" in schema and value > schema["maximum"]: + result.append(f"{path}: above maximum") + return result + + +def validate(value, schema): + check_schema(schema) + return errors(value, schema) diff --git a/tools/test_schema_check.py b/tools/test_schema_check.py new file mode 100644 index 0000000..bc1d414 --- /dev/null +++ b/tools/test_schema_check.py @@ -0,0 +1,64 @@ +"""Regression tests for schema checks that could otherwise allow false passes.""" + +import unittest + +from schema_check import validate + + +class SchemaCheckTests(unittest.TestCase): + def test_booleans_are_not_numbers(self): + self.assertTrue(validate(True, {"type": "integer"})) + self.assertTrue(validate(True, {"const": 1})) + self.assertTrue(validate({"v": True}, {"const": {"v": 1}})) + self.assertFalse(validate([True, 1], {"uniqueItems": True})) + + def test_integral_numbers_and_uniqueness(self): + self.assertFalse(validate(1.0, {"type": "integer"})) + self.assertTrue(validate(1.5, {"type": "integer"})) + self.assertTrue(validate([1, 1.0], {"uniqueItems": True})) + self.assertTrue(validate([{"a": 1, "b": 2}, {"b": 2, "a": 1}], {"uniqueItems": True})) + + def test_closed_required_objects(self): + schema = {"type": "object", "required": ["a"], "additionalProperties": False, + "properties": {"a": {"type": "string"}}} + self.assertFalse(validate({"a": "ok"}, schema)) + self.assertTrue(validate({}, schema)) + self.assertTrue(validate({"a": "ok", "typo": 1}, schema)) + self.assertTrue(validate([], schema)) + + def test_nested_reference(self): + schema = {"$defs": {"entry": {"type": "integer", "minimum": 1}}, + "type": "array", "items": {"$ref": "#/$defs/entry"}} + self.assertFalse(validate([1], schema)) + self.assertTrue(validate([0], schema)) + + def test_reference_siblings_apply(self): + schema = {"$defs": {"integer": {"type": "integer"}}, + "$ref": "#/$defs/integer", "minimum": 2} + self.assertTrue(validate(1, schema)) + self.assertFalse(validate(2, schema)) + + def test_alternatives(self): + schema = {"anyOf": [{"type": "string", "minLength": 1}, {"type": "null"}]} + self.assertFalse(validate(None, schema)) + self.assertFalse(validate("fr-FR", schema)) + self.assertTrue(validate("", schema)) + self.assertTrue(validate(1, schema)) + + def test_bounds_and_pattern(self): + schema = {"type": "array", "minItems": 1, "maxItems": 2, + "items": {"type": "integer", "minimum": 0, "maximum": 255}} + for value in ([], [256], [-1], [0, 0, 0]): + self.assertTrue(validate(value, schema)) + self.assertFalse(validate([0, 255], schema)) + self.assertTrue(validate("ABC", {"pattern": "^[a-z]+$"})) + + def test_unsupported_constraints_fail_closed(self): + with self.assertRaisesRegex(ValueError, "unsupported schema keywords"): + validate({}, {"properties": {"unused": {"oneOf": []}}}) + with self.assertRaisesRegex(ValueError, "only local"): + validate({}, {"$ref": "https://example.invalid/schema"}) + + +if __name__ == "__main__": + unittest.main() diff --git a/tools/test_validate.py b/tools/test_validate.py new file mode 100644 index 0000000..3a63434 --- /dev/null +++ b/tools/test_validate.py @@ -0,0 +1,63 @@ +"""Exercise repository validation against corrupted candidate contract inputs.""" + +import json +import shutil +import subprocess +import sys +import tempfile +import unittest +from pathlib import Path + + +ROOT = Path(__file__).resolve().parents[1] + + +class RepositoryValidationTests(unittest.TestCase): + def setUp(self): + self.temporary = tempfile.TemporaryDirectory() + self.addCleanup(self.temporary.cleanup) + self.root = Path(self.temporary.name) + for name in ("tools", "schemas", "decisions", "spec", "profiles", "compat", "conformance"): + shutil.copytree(ROOT / name, self.root / name, ignore=shutil.ignore_patterns("__pycache__")) + shutil.copyfile(ROOT / "VERSION", self.root / "VERSION") + + def rewrite(self, name, change): + path = self.root / name + value = json.loads(path.read_text()) + change(value) + path.write_text(json.dumps(value)) + + def assert_rejected(self, message): + result = subprocess.run([sys.executable, str(self.root / "tools/validate.py")], + text=True, capture_output=True) + self.assertNotEqual(result.returncode, 0) + self.assertIn(message, result.stdout + result.stderr) + + def test_missing_rule_coverage(self): + for path in (self.root / "conformance/profiles").glob("extent-*.json"): + path.unlink() + self.assert_rejected("uncovered rules: ['R01']") + + def test_wrong_profile_rule(self): + self.rewrite("conformance/profiles/extent-exact.json", + lambda case: case.update(rules=["E01"])) + self.assert_rejected("unknown profile rules") + + def test_duplicate_case_identity(self): + shutil.copyfile(self.root / "conformance/profiles/extent-exact.json", + self.root / "conformance/profiles/duplicate.json") + self.assert_rejected("duplicate case ID") + + def test_incorrect_schema_expectation(self): + self.rewrite("conformance/contracts/manifest-profile-unknown.json", + lambda case: case.update(valid=True)) + self.assert_rejected("schema outcome differs") + + def test_undocumented_rule(self): + self.rewrite("profiles/registry.json", + lambda registry: registry["profiles"][0]["rules"].append("R99")) + self.assert_rejected("registry rules differ") + + +if __name__ == "__main__": + unittest.main() diff --git a/tools/validate.py b/tools/validate.py index 566a800..2f413ee 100644 --- a/tools/validate.py +++ b/tools/validate.py @@ -8,6 +8,8 @@ import sys from pathlib import Path +from schema_check import check_schema, validate + ROOT = Path(__file__).resolve().parents[1] PHASES = {"syntax", "semantics", "layout", "safety", "support"} CAPABILITIES = ["syntax", "semantics", "layout", "safety"] @@ -68,8 +70,12 @@ def main() -> None: # Every schema's $id names the contract minor it belongs to (governance/versioning.md). minor = ".".join(version.split(".")[:2]) + schemas = {} for schema_path in sorted((ROOT / "schemas").glob("*.schema.json")): - schema_id = load_json(schema_path).get("$id") + schema = load_json(schema_path) + check_schema(schema) + schemas[schema_path.name.removesuffix(".schema.json")] = schema + schema_id = schema.get("$id") if not isinstance(schema_id, str): fail(f"{schema_path.name} has no string $id") if not schema_id.endswith(f"/schemas/{minor}/{schema_path.name}"): @@ -196,7 +202,54 @@ def main() -> None: if uncovered: note(f"{len(uncovered)} registered codes have no conformance case: {', '.join(uncovered)}") - print(f"MedUI validation: OK ({len(cases)} cases, {len(known_codes)} diagnostics)") + # Optional profiles carry observations, never .medui parsers or runtime implementations. + registry = load_json(ROOT / "profiles/registry.json") + declared = {} + profile_text = (ROOT / "spec/profiles.md").read_text(encoding="utf-8") + documented_rules = set(re.findall(r"\*\*([REIBP][0-9]{2}) —", profile_text)) + for profile in registry["profiles"]: + key = (profile["id"], profile["version"]) + if key in declared or not profile["rules"] or len(set(profile["rules"])) != len(profile["rules"]): + fail(f"invalid or duplicate profile registration: {key}") + declared[key] = set(profile["rules"]) + if set().union(*declared.values()) != documented_rules: + fail("profile registry rules differ from spec/profiles.md") + claim_schema = properties["profiles"]["items"] + schema_claims = { + (identifier, claim_schema["properties"]["version"]["const"]) + for identifier in claim_schema["properties"]["id"]["enum"] + } + if schema_claims != declared.keys(): + fail("manifest profile claims differ from the profile registry") + coverage = {key: set() for key in declared} + profile_cases = sorted((ROOT / "conformance/profiles").glob("*.json")) + contract_cases = sorted((ROOT / "conformance/contracts").glob("*.json")) + for path in profile_cases + contract_cases: + case = load_json(path) + schema_name = "profile-case" if path.parent.name == "profiles" else "contract-case" + problems = validate(case, schemas[schema_name]) + if problems: + fail(f"{path.relative_to(ROOT)}: {'; '.join(problems)}") + if case["id"] in seen: + fail(f"duplicate case ID: {case['id']}") + seen.add(case["id"]) + if schema_name == "profile-case": + key = (case["profile"]["id"], case["profile"]["version"]) + if key not in declared or not set(case["rules"]) <= declared[key]: + fail(f"{case['id']} references unknown profile rules") + coverage[key].update(case["rules"]) + else: + problems = validate(case["document"], schemas[case["schema"]]) + if (not problems) != case["valid"]: + fail(f"{case['id']} schema outcome differs: {problems}") + for key, rules in declared.items(): + if rules - coverage[key]: + fail(f"{key} has uncovered rules: {sorted(rules - coverage[key])}") + if not contract_cases: + fail("no contract schema cases found") + + print(f"MedUI validation: OK ({len(cases)} compiler cases, {len(profile_cases)} profile cases, " + f"{len(contract_cases)} schema cases, {len(known_codes)} diagnostics)") if __name__ == "__main__": From 35f5a093afc46308276b2f7aee7ac9cb16cd2bcb Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc Date: Mon, 7 Sep 2026 16:00:00 +0200 Subject: [PATCH 2/2] Address rendered-profile review and evidence identity gaps --- .../contracts/report-asset-duplicate.json | 46 ++++++++ conformance/contracts/report-asset-free.json | 37 ++++++ .../report-asset-invalid-digest.json | 42 +++++++ .../contracts/report-asset-invalid-id.json | 42 +++++++ .../contracts/report-asset-legacy-rollup.json | 37 ++++++ conformance/contracts/report-asset-list.json | 54 +++++++++ .../report-asset-missing-digest.json | 41 +++++++ .../report-duplicate-obligation.json | 14 ++- .../contracts/report-extra-identity.json | 7 +- conformance/contracts/report-fail.json | 14 ++- .../contracts/report-missing-artifact.json | 14 ++- .../contracts/report-missing-assets.json | 7 +- .../contracts/report-missing-backend.json | 14 ++- .../contracts/report-missing-baseline.json | 14 ++- .../contracts/report-missing-capture.json | 14 ++- .../contracts/report-missing-check.json | 14 ++- .../report-missing-configuration.json | 14 ++- .../contracts/report-missing-contract.json | 14 ++- .../contracts/report-missing-frame.json | 14 ++- .../contracts/report-missing-locale.json | 14 ++- .../contracts/report-missing-node.json | 14 ++- .../contracts/report-missing-producer.json | 14 ++- .../contracts/report-missing-profile.json | 14 ++- .../contracts/report-missing-scenario.json | 14 ++- .../contracts/report-missing-screen.json | 14 ++- conformance/contracts/report-not-run.json | 14 ++- conformance/contracts/report-pass.json | 14 ++- .../contracts/report-unknown-outcome.json | 14 ++- conformance/contracts/report-unsupported.json | 14 ++- conformance/profiles/assets-duplicate-id.json | 95 +++++++++++++++ conformance/profiles/assets-many.json | 111 ++++++++++++++++++ conformance/profiles/assets-none.json | 77 ++++++++++++ conformance/profiles/assets-unsorted.json | 111 ++++++++++++++++++ .../evidence-duplicate-obligation.json | 21 +++- conformance/profiles/evidence-duplicate.json | 21 +++- conformance/profiles/evidence-fail.json | 14 ++- .../profiles/evidence-missing-baseline.json | 14 ++- conformance/profiles/evidence-not-run.json | 14 ++- conformance/profiles/evidence-omitted.json | 7 +- conformance/profiles/evidence-pass.json | 14 ++- conformance/profiles/evidence-unexpected.json | 7 +- .../profiles/evidence-unsupported.json | 14 ++- conformance/profiles/hash-backend.json | 18 ++- conformance/profiles/hash-crop.json | 18 ++- conformance/profiles/hash-empty.json | 20 +++- conformance/profiles/hash-match.json | 18 ++- conformance/profiles/hash-mismatch.json | 18 ++- conformance/profiles/hash-missing.json | 18 ++- conformance/profiles/hash-outside.json | 18 ++- conformance/profiles/identity-artifact.json | 14 ++- conformance/profiles/identity-asset-id.json | 87 ++++++++++++++ conformance/profiles/identity-assets.json | 14 ++- .../profiles/identity-backend-case.json | 87 ++++++++++++++ conformance/profiles/identity-backend.json | 14 ++- conformance/profiles/identity-capture.json | 14 ++- conformance/profiles/identity-check.json | 14 ++- .../profiles/identity-configuration.json | 14 ++- conformance/profiles/identity-contract.json | 14 ++- conformance/profiles/identity-frame.json | 14 ++- conformance/profiles/identity-key-order.json | 14 ++- conformance/profiles/identity-locale.json | 14 ++- conformance/profiles/identity-node.json | 14 ++- .../profiles/identity-producer-token.json | 87 ++++++++++++++ conformance/profiles/identity-producer.json | 14 ++- conformance/profiles/identity-scenario.json | 14 ++- conformance/profiles/identity-screen.json | 14 ++- conformance/profiles/tint-narrow-foreign.json | 50 ++++++++ conformance/profiles/tint-narrow-one.json | 50 ++++++++ conformance/profiles/tint-narrow-two.json | 50 ++++++++ conformance/profiles/tint-one-round.json | 2 +- conformance/profiles/tint-one-too-far.json | 2 +- conformance/profiles/tint-two-round.json | 2 +- conformance/profiles/tint-two-too-far.json | 2 +- .../profiles/tint-zero-span-boundary.json | 50 ++++++++ .../profiles/tint-zero-span-outside.json | 50 ++++++++ schemas/evidence.schema.json | 29 ++++- spec/profiles.md | 56 +++++++-- tools/schema_check.py | 34 ++++-- tools/test_schema_check.py | 16 +++ tools/test_validate.py | 23 +++- tools/validate.py | 21 +++- 81 files changed, 1989 insertions(+), 146 deletions(-) create mode 100644 conformance/contracts/report-asset-duplicate.json create mode 100644 conformance/contracts/report-asset-free.json create mode 100644 conformance/contracts/report-asset-invalid-digest.json create mode 100644 conformance/contracts/report-asset-invalid-id.json create mode 100644 conformance/contracts/report-asset-legacy-rollup.json create mode 100644 conformance/contracts/report-asset-list.json create mode 100644 conformance/contracts/report-asset-missing-digest.json create mode 100644 conformance/profiles/assets-duplicate-id.json create mode 100644 conformance/profiles/assets-many.json create mode 100644 conformance/profiles/assets-none.json create mode 100644 conformance/profiles/assets-unsorted.json create mode 100644 conformance/profiles/identity-asset-id.json create mode 100644 conformance/profiles/identity-backend-case.json create mode 100644 conformance/profiles/identity-producer-token.json create mode 100644 conformance/profiles/tint-narrow-foreign.json create mode 100644 conformance/profiles/tint-narrow-one.json create mode 100644 conformance/profiles/tint-narrow-two.json create mode 100644 conformance/profiles/tint-zero-span-boundary.json create mode 100644 conformance/profiles/tint-zero-span-outside.json diff --git a/conformance/contracts/report-asset-duplicate.json b/conformance/contracts/report-asset-duplicate.json new file mode 100644 index 0000000..a985335 --- /dev/null +++ b/conformance/contracts/report-asset-duplicate.json @@ -0,0 +1,46 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-ASSET-DUPLICATE", + "schema": "evidence", + "description": "report asset duplicate", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "font/main", + "digest": "1111111111111111111111111111111111111111111111111111111111111111" + }, + { + "id": "font/main", + "digest": "1111111111111111111111111111111111111111111111111111111111111111" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [] + }, + "valid": false +} diff --git a/conformance/contracts/report-asset-free.json b/conformance/contracts/report-asset-free.json new file mode 100644 index 0000000..fcb4df8 --- /dev/null +++ b/conformance/contracts/report-asset-free.json @@ -0,0 +1,37 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-ASSET-FREE", + "schema": "evidence", + "description": "report asset free", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [] + }, + "valid": true +} diff --git a/conformance/contracts/report-asset-invalid-digest.json b/conformance/contracts/report-asset-invalid-digest.json new file mode 100644 index 0000000..108bd58 --- /dev/null +++ b/conformance/contracts/report-asset-invalid-digest.json @@ -0,0 +1,42 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-ASSET-INVALID-DIGEST", + "schema": "evidence", + "description": "report asset invalid digest", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "font/main", + "digest": "xyz" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [] + }, + "valid": false +} diff --git a/conformance/contracts/report-asset-invalid-id.json b/conformance/contracts/report-asset-invalid-id.json new file mode 100644 index 0000000..a055c02 --- /dev/null +++ b/conformance/contracts/report-asset-invalid-id.json @@ -0,0 +1,42 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-ASSET-INVALID-ID", + "schema": "evidence", + "description": "report asset invalid id", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "Font Main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [] + }, + "valid": false +} diff --git a/conformance/contracts/report-asset-legacy-rollup.json b/conformance/contracts/report-asset-legacy-rollup.json new file mode 100644 index 0000000..84861d9 --- /dev/null +++ b/conformance/contracts/report-asset-legacy-rollup.json @@ -0,0 +1,37 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-ASSET-LEGACY-ROLLUP", + "schema": "evidence", + "description": "report asset legacy rollup", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [] + }, + "valid": false +} diff --git a/conformance/contracts/report-asset-list.json b/conformance/contracts/report-asset-list.json new file mode 100644 index 0000000..26eec2e --- /dev/null +++ b/conformance/contracts/report-asset-list.json @@ -0,0 +1,54 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-ASSET-LIST", + "schema": "evidence", + "description": "report asset list", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "font/main", + "digest": "1111111111111111111111111111111111111111111111111111111111111111" + }, + { + "id": "image/ui", + "digest": "2222222222222222222222222222222222222222222222222222222222222222" + }, + { + "id": "shader/ui", + "digest": "3333333333333333333333333333333333333333333333333333333333333333" + }, + { + "id": "text/fr-fr", + "digest": "4444444444444444444444444444444444444444444444444444444444444444" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [] + }, + "valid": true +} diff --git a/conformance/contracts/report-asset-missing-digest.json b/conformance/contracts/report-asset-missing-digest.json new file mode 100644 index 0000000..01746a2 --- /dev/null +++ b/conformance/contracts/report-asset-missing-digest.json @@ -0,0 +1,41 @@ +{ + "id": "MEDUI-CONTRACT-CASE-REPORT-ASSET-MISSING-DIGEST", + "schema": "evidence", + "description": "report asset missing digest", + "document": { + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "font/main" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [] + }, + "valid": false +} diff --git a/conformance/contracts/report-duplicate-obligation.json b/conformance/contracts/report-duplicate-obligation.json index d5914bf..5338843 100644 --- a/conformance/contracts/report-duplicate-obligation.json +++ b/conformance/contracts/report-duplicate-obligation.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -42,7 +47,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-extra-identity.json b/conformance/contracts/report-extra-identity.json index c98917d..a1d5de7 100644 --- a/conformance/contracts/report-extra-identity.json +++ b/conformance/contracts/report-extra-identity.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-fail.json b/conformance/contracts/report-fail.json index 2038ba2..3f8cdd0 100644 --- a/conformance/contracts/report-fail.json +++ b/conformance/contracts/report-fail.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -45,7 +50,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-missing-artifact.json b/conformance/contracts/report-missing-artifact.json index 129dcd6..5229a64 100644 --- a/conformance/contracts/report-missing-artifact.json +++ b/conformance/contracts/report-missing-artifact.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -44,7 +49,12 @@ "id": "MEDUI-PROFILE-RENDERED", "version": 1 }, - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-missing-assets.json b/conformance/contracts/report-missing-assets.json index 4522983..182e2f3 100644 --- a/conformance/contracts/report-missing-assets.json +++ b/conformance/contracts/report-missing-assets.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-missing-backend.json b/conformance/contracts/report-missing-backend.json index 0ee3110..07408cb 100644 --- a/conformance/contracts/report-missing-backend.json +++ b/conformance/contracts/report-missing-backend.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -45,7 +50,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-missing-baseline.json b/conformance/contracts/report-missing-baseline.json index c949646..7ab5124 100644 --- a/conformance/contracts/report-missing-baseline.json +++ b/conformance/contracts/report-missing-baseline.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -45,7 +50,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-missing-capture.json b/conformance/contracts/report-missing-capture.json index 6ab3d4e..cab9a21 100644 --- a/conformance/contracts/report-missing-capture.json +++ b/conformance/contracts/report-missing-capture.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -45,7 +50,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-missing-check.json b/conformance/contracts/report-missing-check.json index 9385509..612a671 100644 --- a/conformance/contracts/report-missing-check.json +++ b/conformance/contracts/report-missing-check.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -45,7 +50,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-missing-configuration.json b/conformance/contracts/report-missing-configuration.json index 165d42a..e26a4a4 100644 --- a/conformance/contracts/report-missing-configuration.json +++ b/conformance/contracts/report-missing-configuration.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -45,7 +50,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-missing-contract.json b/conformance/contracts/report-missing-contract.json index 652a9de..6459bbc 100644 --- a/conformance/contracts/report-missing-contract.json +++ b/conformance/contracts/report-missing-contract.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -44,7 +49,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-missing-frame.json b/conformance/contracts/report-missing-frame.json index 4517187..f1711b6 100644 --- a/conformance/contracts/report-missing-frame.json +++ b/conformance/contracts/report-missing-frame.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -45,7 +50,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-missing-locale.json b/conformance/contracts/report-missing-locale.json index 88e00e2..ec298c4 100644 --- a/conformance/contracts/report-missing-locale.json +++ b/conformance/contracts/report-missing-locale.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -45,7 +50,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "scenario": "static", diff --git a/conformance/contracts/report-missing-node.json b/conformance/contracts/report-missing-node.json index eb922f3..ae4fee4 100644 --- a/conformance/contracts/report-missing-node.json +++ b/conformance/contracts/report-missing-node.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -45,7 +50,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "locale": null, "scenario": "static", diff --git a/conformance/contracts/report-missing-producer.json b/conformance/contracts/report-missing-producer.json index 82fad6c..667a62b 100644 --- a/conformance/contracts/report-missing-producer.json +++ b/conformance/contracts/report-missing-producer.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -40,7 +45,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-missing-profile.json b/conformance/contracts/report-missing-profile.json index aa954d6..e19b611 100644 --- a/conformance/contracts/report-missing-profile.json +++ b/conformance/contracts/report-missing-profile.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -41,7 +46,12 @@ "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-missing-scenario.json b/conformance/contracts/report-missing-scenario.json index 360981d..822d94e 100644 --- a/conformance/contracts/report-missing-scenario.json +++ b/conformance/contracts/report-missing-scenario.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -45,7 +50,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-missing-screen.json b/conformance/contracts/report-missing-screen.json index 059954e..d52c287 100644 --- a/conformance/contracts/report-missing-screen.json +++ b/conformance/contracts/report-missing-screen.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -45,7 +50,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "node": "node", "locale": null, "scenario": "static", diff --git a/conformance/contracts/report-not-run.json b/conformance/contracts/report-not-run.json index ec0c13a..e234e96 100644 --- a/conformance/contracts/report-not-run.json +++ b/conformance/contracts/report-not-run.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -45,7 +50,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-pass.json b/conformance/contracts/report-pass.json index bc46398..a8c25b6 100644 --- a/conformance/contracts/report-pass.json +++ b/conformance/contracts/report-pass.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -45,7 +50,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-unknown-outcome.json b/conformance/contracts/report-unknown-outcome.json index 2f18dee..f4dc3c0 100644 --- a/conformance/contracts/report-unknown-outcome.json +++ b/conformance/contracts/report-unknown-outcome.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -45,7 +50,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/contracts/report-unsupported.json b/conformance/contracts/report-unsupported.json index 180d4cd..8c1382e 100644 --- a/conformance/contracts/report-unsupported.json +++ b/conformance/contracts/report-unsupported.json @@ -16,7 +16,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -45,7 +50,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/assets-duplicate-id.json b/conformance/profiles/assets-duplicate-id.json new file mode 100644 index 0000000..dbc5f35 --- /dev/null +++ b/conformance/profiles/assets-duplicate-id.json @@ -0,0 +1,95 @@ +{ + "id": "MEDUI-PROFILE-CASE-ASSETS-DUPLICATE-ID", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "Validate the full identity asset list before comparing obligations and rows.", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "font/main", + "digest": "1111111111111111111111111111111111111111111111111111111111111111" + }, + { + "id": "font/main", + "digest": "5555555555555555555555555555555555555555555555555555555555555555" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "font/main", + "digest": "1111111111111111111111111111111111111111111111111111111111111111" + }, + { + "id": "font/main", + "digest": "5555555555555555555555555555555555555555555555555555555555555555" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/assets-many.json b/conformance/profiles/assets-many.json new file mode 100644 index 0000000..8d1dbc2 --- /dev/null +++ b/conformance/profiles/assets-many.json @@ -0,0 +1,111 @@ +{ + "id": "MEDUI-PROFILE-CASE-ASSETS-MANY", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "Validate the full identity asset list before comparing obligations and rows.", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "font/main", + "digest": "1111111111111111111111111111111111111111111111111111111111111111" + }, + { + "id": "image/ui", + "digest": "2222222222222222222222222222222222222222222222222222222222222222" + }, + { + "id": "shader/ui", + "digest": "3333333333333333333333333333333333333333333333333333333333333333" + }, + { + "id": "text/fr-fr", + "digest": "4444444444444444444444444444444444444444444444444444444444444444" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "font/main", + "digest": "1111111111111111111111111111111111111111111111111111111111111111" + }, + { + "id": "image/ui", + "digest": "2222222222222222222222222222222222222222222222222222222222222222" + }, + { + "id": "shader/ui", + "digest": "3333333333333333333333333333333333333333333333333333333333333333" + }, + { + "id": "text/fr-fr", + "digest": "4444444444444444444444444444444444444444444444444444444444444444" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/assets-none.json b/conformance/profiles/assets-none.json new file mode 100644 index 0000000..e298205 --- /dev/null +++ b/conformance/profiles/assets-none.json @@ -0,0 +1,77 @@ +{ + "id": "MEDUI-PROFILE-CASE-ASSETS-NONE", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "Validate the full identity asset list before comparing obligations and rows.", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/assets-unsorted.json b/conformance/profiles/assets-unsorted.json new file mode 100644 index 0000000..ce30413 --- /dev/null +++ b/conformance/profiles/assets-unsorted.json @@ -0,0 +1,111 @@ +{ + "id": "MEDUI-PROFILE-CASE-ASSETS-UNSORTED", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "Validate the full identity asset list before comparing obligations and rows.", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "text/fr-fr", + "digest": "4444444444444444444444444444444444444444444444444444444444444444" + }, + { + "id": "shader/ui", + "digest": "3333333333333333333333333333333333333333333333333333333333333333" + }, + { + "id": "image/ui", + "digest": "2222222222222222222222222222222222222222222222222222222222222222" + }, + { + "id": "font/main", + "digest": "1111111111111111111111111111111111111111111111111111111111111111" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "text/fr-fr", + "digest": "4444444444444444444444444444444444444444444444444444444444444444" + }, + { + "id": "shader/ui", + "digest": "3333333333333333333333333333333333333333333333333333333333333333" + }, + { + "id": "image/ui", + "digest": "2222222222222222222222222222222222222222222222222222222222222222" + }, + { + "id": "font/main", + "digest": "1111111111111111111111111111111111111111111111111111111111111111" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/evidence-duplicate-obligation.json b/conformance/profiles/evidence-duplicate-obligation.json index e0251af..50dfb62 100644 --- a/conformance/profiles/evidence-duplicate-obligation.json +++ b/conformance/profiles/evidence-duplicate-obligation.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -50,7 +55,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -79,7 +89,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/evidence-duplicate.json b/conformance/profiles/evidence-duplicate.json index b09454c..9ebcb2c 100644 --- a/conformance/profiles/evidence-duplicate.json +++ b/conformance/profiles/evidence-duplicate.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -82,7 +92,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/evidence-fail.json b/conformance/profiles/evidence-fail.json index f1cdc8a..cff3237 100644 --- a/conformance/profiles/evidence-fail.json +++ b/conformance/profiles/evidence-fail.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/evidence-missing-baseline.json b/conformance/profiles/evidence-missing-baseline.json index 01ded7a..a3d5016 100644 --- a/conformance/profiles/evidence-missing-baseline.json +++ b/conformance/profiles/evidence-missing-baseline.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/evidence-not-run.json b/conformance/profiles/evidence-not-run.json index a2594bf..7dc30b9 100644 --- a/conformance/profiles/evidence-not-run.json +++ b/conformance/profiles/evidence-not-run.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/evidence-omitted.json b/conformance/profiles/evidence-omitted.json index 0c25157..1b57951 100644 --- a/conformance/profiles/evidence-omitted.json +++ b/conformance/profiles/evidence-omitted.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/evidence-pass.json b/conformance/profiles/evidence-pass.json index 4360c52..735f321 100644 --- a/conformance/profiles/evidence-pass.json +++ b/conformance/profiles/evidence-pass.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/evidence-unexpected.json b/conformance/profiles/evidence-unexpected.json index dfabeaf..a257426 100644 --- a/conformance/profiles/evidence-unexpected.json +++ b/conformance/profiles/evidence-unexpected.json @@ -26,7 +26,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/evidence-unsupported.json b/conformance/profiles/evidence-unsupported.json index a46de03..665b27b 100644 --- a/conformance/profiles/evidence-unsupported.json +++ b/conformance/profiles/evidence-unsupported.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/hash-backend.json b/conformance/profiles/hash-backend.json index 7263c59..27657db 100644 --- a/conformance/profiles/hash-backend.json +++ b/conformance/profiles/hash-backend.json @@ -52,7 +52,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -60,7 +65,7 @@ "capture": "capture", "frame": 0, "check": { - "id": "extent-equality", + "id": "rgba8-sha256", "version": 1 }, "backend": "synthetic", @@ -78,7 +83,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -86,7 +96,7 @@ "capture": "capture", "frame": 0, "check": { - "id": "extent-equality", + "id": "rgba8-sha256", "version": 1 }, "backend": "other", diff --git a/conformance/profiles/hash-crop.json b/conformance/profiles/hash-crop.json index d3978df..8a51a97 100644 --- a/conformance/profiles/hash-crop.json +++ b/conformance/profiles/hash-crop.json @@ -52,7 +52,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -60,7 +65,7 @@ "capture": "capture", "frame": 0, "check": { - "id": "extent-equality", + "id": "rgba8-sha256", "version": 1 }, "backend": "synthetic", @@ -78,7 +83,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -86,7 +96,7 @@ "capture": "capture", "frame": 0, "check": { - "id": "extent-equality", + "id": "rgba8-sha256", "version": 1 }, "backend": "synthetic", diff --git a/conformance/profiles/hash-empty.json b/conformance/profiles/hash-empty.json index 348765e..7b81ef2 100644 --- a/conformance/profiles/hash-empty.json +++ b/conformance/profiles/hash-empty.json @@ -7,7 +7,7 @@ "rules": [ "R04" ], - "description": "hash empty", + "description": "A zero-area region hashes the empty byte string: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.", "inputs": { "operation": "rendered-check", "check": "rgba8-sha256", @@ -52,7 +52,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -60,7 +65,7 @@ "capture": "capture", "frame": 0, "check": { - "id": "extent-equality", + "id": "rgba8-sha256", "version": 1 }, "backend": "synthetic", @@ -78,7 +83,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -86,7 +96,7 @@ "capture": "capture", "frame": 0, "check": { - "id": "extent-equality", + "id": "rgba8-sha256", "version": 1 }, "backend": "synthetic", diff --git a/conformance/profiles/hash-match.json b/conformance/profiles/hash-match.json index a094658..e99e509 100644 --- a/conformance/profiles/hash-match.json +++ b/conformance/profiles/hash-match.json @@ -52,7 +52,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -60,7 +65,7 @@ "capture": "capture", "frame": 0, "check": { - "id": "extent-equality", + "id": "rgba8-sha256", "version": 1 }, "backend": "synthetic", @@ -78,7 +83,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -86,7 +96,7 @@ "capture": "capture", "frame": 0, "check": { - "id": "extent-equality", + "id": "rgba8-sha256", "version": 1 }, "backend": "synthetic", diff --git a/conformance/profiles/hash-mismatch.json b/conformance/profiles/hash-mismatch.json index d2ba5ee..fb2a090 100644 --- a/conformance/profiles/hash-mismatch.json +++ b/conformance/profiles/hash-mismatch.json @@ -52,7 +52,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -60,7 +65,7 @@ "capture": "capture", "frame": 0, "check": { - "id": "extent-equality", + "id": "rgba8-sha256", "version": 1 }, "backend": "synthetic", @@ -78,7 +83,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -86,7 +96,7 @@ "capture": "capture", "frame": 0, "check": { - "id": "extent-equality", + "id": "rgba8-sha256", "version": 1 }, "backend": "synthetic", diff --git a/conformance/profiles/hash-missing.json b/conformance/profiles/hash-missing.json index 5da3e69..b2db08b 100644 --- a/conformance/profiles/hash-missing.json +++ b/conformance/profiles/hash-missing.json @@ -52,7 +52,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -60,7 +65,7 @@ "capture": "capture", "frame": 0, "check": { - "id": "extent-equality", + "id": "rgba8-sha256", "version": 1 }, "backend": "synthetic", @@ -78,7 +83,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -86,7 +96,7 @@ "capture": "capture", "frame": 0, "check": { - "id": "extent-equality", + "id": "rgba8-sha256", "version": 1 }, "backend": "synthetic", diff --git a/conformance/profiles/hash-outside.json b/conformance/profiles/hash-outside.json index e36d902..0e98f68 100644 --- a/conformance/profiles/hash-outside.json +++ b/conformance/profiles/hash-outside.json @@ -52,7 +52,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -60,7 +65,7 @@ "capture": "capture", "frame": 0, "check": { - "id": "extent-equality", + "id": "rgba8-sha256", "version": 1 }, "backend": "synthetic", @@ -78,7 +83,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -86,7 +96,7 @@ "capture": "capture", "frame": 0, "check": { - "id": "extent-equality", + "id": "rgba8-sha256", "version": 1 }, "backend": "synthetic", diff --git a/conformance/profiles/identity-artifact.json b/conformance/profiles/identity-artifact.json index 36af0e2..3671a51 100644 --- a/conformance/profiles/identity-artifact.json +++ b/conformance/profiles/identity-artifact.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/identity-asset-id.json b/conformance/profiles/identity-asset-id.json new file mode 100644 index 0000000..84ea0b4 --- /dev/null +++ b/conformance/profiles/identity-asset-id.json @@ -0,0 +1,87 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-ASSET-ID", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "Exact identity comparison must not alias distinct asset, backend or producer identifiers.", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "font/other", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/identity-assets.json b/conformance/profiles/identity-assets.json index 9a735d1..b5fe26e 100644 --- a/conformance/profiles/identity-assets.json +++ b/conformance/profiles/identity-assets.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "assets": [ + { + "id": "font/main", + "digest": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/identity-backend-case.json b/conformance/profiles/identity-backend-case.json new file mode 100644 index 0000000..a8d66eb --- /dev/null +++ b/conformance/profiles/identity-backend-case.json @@ -0,0 +1,87 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-BACKEND-CASE", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "Exact identity comparison must not alias distinct asset, backend or producer identifiers.", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "Synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/identity-backend.json b/conformance/profiles/identity-backend.json index 1face76..4892ef2 100644 --- a/conformance/profiles/identity-backend.json +++ b/conformance/profiles/identity-backend.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/identity-capture.json b/conformance/profiles/identity-capture.json index c5c147e..9b732bc 100644 --- a/conformance/profiles/identity-capture.json +++ b/conformance/profiles/identity-capture.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/identity-check.json b/conformance/profiles/identity-check.json index 47c7ff5..f7a5fa0 100644 --- a/conformance/profiles/identity-check.json +++ b/conformance/profiles/identity-check.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/identity-configuration.json b/conformance/profiles/identity-configuration.json index 9c9e6ff..71e47e7 100644 --- a/conformance/profiles/identity-configuration.json +++ b/conformance/profiles/identity-configuration.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/identity-contract.json b/conformance/profiles/identity-contract.json index 43a9262..c771553 100644 --- a/conformance/profiles/identity-contract.json +++ b/conformance/profiles/identity-contract.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/identity-frame.json b/conformance/profiles/identity-frame.json index 5a6649c..df5a409 100644 --- a/conformance/profiles/identity-frame.json +++ b/conformance/profiles/identity-frame.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/identity-key-order.json b/conformance/profiles/identity-key-order.json index 15f9f12..70f362d 100644 --- a/conformance/profiles/identity-key-order.json +++ b/conformance/profiles/identity-key-order.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -54,7 +59,12 @@ "locale": null, "node": "node", "screen": "screen", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "profile": { "id": "MEDUI-PROFILE-RENDERED", diff --git a/conformance/profiles/identity-locale.json b/conformance/profiles/identity-locale.json index 5301a2d..4294509 100644 --- a/conformance/profiles/identity-locale.json +++ b/conformance/profiles/identity-locale.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": "fr-FR", diff --git a/conformance/profiles/identity-node.json b/conformance/profiles/identity-node.json index 21c59a6..0bf6064 100644 --- a/conformance/profiles/identity-node.json +++ b/conformance/profiles/identity-node.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "other", "locale": null, diff --git a/conformance/profiles/identity-producer-token.json b/conformance/profiles/identity-producer-token.json new file mode 100644 index 0000000..6346f6f --- /dev/null +++ b/conformance/profiles/identity-producer-token.json @@ -0,0 +1,87 @@ +{ + "id": "MEDUI-PROFILE-CASE-IDENTITY-PRODUCER-TOKEN", + "profile": { + "id": "MEDUI-PROFILE-EVIDENCE", + "version": 1 + }, + "rules": [ + "E01", + "E02" + ], + "description": "Exact identity comparison must not alias distinct asset, backend or producer identifiers.", + "inputs": { + "operation": "aggregate-evidence", + "obligations": [ + { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "fixture", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + } + ], + "rows": [ + { + "identity": { + "contract": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "producer": { + "name": "other", + "version": "1", + "source": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + }, + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "extent-equality", + "version": 1 + }, + "backend": "synthetic", + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + "outcome": "pass" + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/identity-producer.json b/conformance/profiles/identity-producer.json index 41a1073..b92c4d1 100644 --- a/conformance/profiles/identity-producer.json +++ b/conformance/profiles/identity-producer.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/identity-scenario.json b/conformance/profiles/identity-scenario.json index 41ba5c1..c5881f2 100644 --- a/conformance/profiles/identity-scenario.json +++ b/conformance/profiles/identity-scenario.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, diff --git a/conformance/profiles/identity-screen.json b/conformance/profiles/identity-screen.json index e70c8f8..a0ebd18 100644 --- a/conformance/profiles/identity-screen.json +++ b/conformance/profiles/identity-screen.json @@ -24,7 +24,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "screen", "node": "node", "locale": null, @@ -53,7 +58,12 @@ "version": 1 }, "artifact": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "assets": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "assets": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], "screen": "other", "node": "node", "locale": null, diff --git a/conformance/profiles/tint-narrow-foreign.json b/conformance/profiles/tint-narrow-foreign.json new file mode 100644 index 0000000..3dc4bda --- /dev/null +++ b/conformance/profiles/tint-narrow-foreign.json @@ -0,0 +1,50 @@ +{ + "id": "MEDUI-PROFILE-CASE-TINT-NARROW-FOREIGN", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R03" + ], + "description": "Narrow red span from the MduX hardware regression; foreign composite allowance.", + "inputs": { + "operation": "rendered-check", + "check": "tint-composition", + "tint": [ + 219, + 51, + 46 + ], + "composites": 2, + "samples": [ + { + "background": [ + 209, + 214, + 219 + ], + "rgb": [ + 215, + 20, + 135 + ] + }, + { + "background": [ + 209, + 214, + 219 + ], + "rgb": [ + 219, + 51, + 46 + ] + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/tint-narrow-one.json b/conformance/profiles/tint-narrow-one.json new file mode 100644 index 0000000..8d52b1e --- /dev/null +++ b/conformance/profiles/tint-narrow-one.json @@ -0,0 +1,50 @@ +{ + "id": "MEDUI-PROFILE-CASE-TINT-NARROW-ONE", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R03" + ], + "description": "Narrow red span from the MduX hardware regression; one composite allowance.", + "inputs": { + "operation": "rendered-check", + "check": "tint-composition", + "tint": [ + 219, + 51, + 46 + ], + "composites": 1, + "samples": [ + { + "background": [ + 209, + 214, + 219 + ], + "rgb": [ + 215, + 134, + 135 + ] + }, + { + "background": [ + 209, + 214, + 219 + ], + "rgb": [ + 219, + 51, + 46 + ] + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/tint-narrow-two.json b/conformance/profiles/tint-narrow-two.json new file mode 100644 index 0000000..1ed3edb --- /dev/null +++ b/conformance/profiles/tint-narrow-two.json @@ -0,0 +1,50 @@ +{ + "id": "MEDUI-PROFILE-CASE-TINT-NARROW-TWO", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R03" + ], + "description": "Narrow red span from the MduX hardware regression; two composite allowance.", + "inputs": { + "operation": "rendered-check", + "check": "tint-composition", + "tint": [ + 219, + 51, + 46 + ], + "composites": 2, + "samples": [ + { + "background": [ + 209, + 214, + 219 + ], + "rgb": [ + 215, + 134, + 135 + ] + }, + { + "background": [ + 209, + 214, + 219 + ], + "rgb": [ + 219, + 51, + 46 + ] + } + ] + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/tint-one-round.json b/conformance/profiles/tint-one-round.json index b5d6a1f..c9da32b 100644 --- a/conformance/profiles/tint-one-round.json +++ b/conformance/profiles/tint-one-round.json @@ -25,7 +25,7 @@ 0 ], "rgb": [ - 101, + 103, 50, 0 ] diff --git a/conformance/profiles/tint-one-too-far.json b/conformance/profiles/tint-one-too-far.json index 9b1fb0c..81d3f58 100644 --- a/conformance/profiles/tint-one-too-far.json +++ b/conformance/profiles/tint-one-too-far.json @@ -25,7 +25,7 @@ 0 ], "rgb": [ - 103, + 104, 50, 0 ] diff --git a/conformance/profiles/tint-two-round.json b/conformance/profiles/tint-two-round.json index 1422cd8..54acff6 100644 --- a/conformance/profiles/tint-two-round.json +++ b/conformance/profiles/tint-two-round.json @@ -25,7 +25,7 @@ 0 ], "rgb": [ - 103, + 106, 50, 0 ] diff --git a/conformance/profiles/tint-two-too-far.json b/conformance/profiles/tint-two-too-far.json index c182d25..0a54669 100644 --- a/conformance/profiles/tint-two-too-far.json +++ b/conformance/profiles/tint-two-too-far.json @@ -25,7 +25,7 @@ 0 ], "rgb": [ - 104, + 107, 50, 0 ] diff --git a/conformance/profiles/tint-zero-span-boundary.json b/conformance/profiles/tint-zero-span-boundary.json new file mode 100644 index 0000000..5eb3dcc --- /dev/null +++ b/conformance/profiles/tint-zero-span-boundary.json @@ -0,0 +1,50 @@ +{ + "id": "MEDUI-PROFILE-CASE-TINT-ZERO-SPAN-BOUNDARY", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R03" + ], + "description": "A zero-span channel must remain within the two-composite allowance.", + "inputs": { + "operation": "rendered-check", + "check": "tint-composition", + "tint": [ + 200, + 100, + 0 + ], + "composites": 2, + "samples": [ + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 200, + 100, + 2 + ] + }, + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 200, + 100, + 0 + ] + } + ] + }, + "expected": { + "outcome": "pass" + } +} diff --git a/conformance/profiles/tint-zero-span-outside.json b/conformance/profiles/tint-zero-span-outside.json new file mode 100644 index 0000000..846e34c --- /dev/null +++ b/conformance/profiles/tint-zero-span-outside.json @@ -0,0 +1,50 @@ +{ + "id": "MEDUI-PROFILE-CASE-TINT-ZERO-SPAN-OUTSIDE", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R03" + ], + "description": "A zero-span channel must remain within the two-composite allowance.", + "inputs": { + "operation": "rendered-check", + "check": "tint-composition", + "tint": [ + 200, + 100, + 0 + ], + "composites": 2, + "samples": [ + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 200, + 100, + 3 + ] + }, + { + "background": [ + 0, + 0, + 0 + ], + "rgb": [ + 200, + 100, + 0 + ] + } + ] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/schemas/evidence.schema.json b/schemas/evidence.schema.json index 169e962..20546e8 100644 --- a/schemas/evidence.schema.json +++ b/schemas/evidence.schema.json @@ -110,8 +110,27 @@ "pattern": "^[0-9a-f]{64}$" }, "assets": { - "type": "string", - "pattern": "^[0-9a-f]{64}$" + "type": "array", + "uniqueItems": true, + "description": "Unique logical artifact IDs in strictly ascending ASCII order; ordering and ID uniqueness are semantic identity constraints.", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[a-z0-9][a-z0-9./_-]*$" + }, + "digest": { + "type": "string", + "pattern": "^[0-9a-f]{64}$" + } + } + } }, "screen": { "type": "string", @@ -174,11 +193,13 @@ }, "backend": { "type": "string", - "minLength": 1 + "minLength": 1, + "description": "Exact case-sensitive producer-scoped backend identifier. No alias canonicalization is applied." }, "configuration": { "type": "string", - "pattern": "^[0-9a-f]{64}$" + "pattern": "^[0-9a-f]{64}$", + "description": "Opaque producer-scoped token; payload and encoding are defined by the producer contract, not by MedUI." } } } diff --git a/spec/profiles.md b/spec/profiles.md index f1a53f7..c675e87 100644 --- a/spec/profiles.md +++ b/spec/profiles.md @@ -17,6 +17,12 @@ public observations or a logical scenario, and `expected` is the required observ These are not native artifacts or private object layouts. Each vector lists the numbered rules it exercises. Repository validation checks structure and rule coverage; consumer harnesses run the vectors. Passing repository validation alone is not profile conformance. +Every vector applies to a claimed profile, including empty ink and zero-area hash regions. +Consumers may adapt these synthetic observations to a standalone predicate even when their +integrated compiler or capture path rejects degenerate geometry upstream. Returning `unsupported` +instead of a vector's expected outcome does not satisfy the claim. Implementation-local checks, +including glyph-shape checks, may run alongside the shared checks; they neither replace shared +cases nor change their outcomes. ### Vector protocol @@ -38,11 +44,13 @@ or default background exists. Product captures require an identified presentatio rectangle expanded by the supplied nonnegative integer margin on each side. Touching its outer edge is allowed; extending beyond it fails. - **R03 — tint-composition/1.** Samples are opaque RGB8 observations over an explicit RGB8 - background after either one or two identical tint-over-background composites. A single real - coverage `a` in `[0,1]` is shared by all three channels of a sample. The ideal channel after - `n` composites is `t + (b-t)*(1-a)^n`. Each observed channel may differ by at most `n/2` UNORM - units (inclusive), accounting for round-to-nearest error at each composite. Coverage can - differ between samples. Every sample must satisfy the common-coverage constraint and at least + background after either one or two same-tint composites. A single real effective coverage `a` + in `[0,1]` is shared by all three channels of a sample: the ideal channel is `b + (t-b)*a`. + Each observed channel may differ by at most `n` UNORM units (inclusive), one per composite. + This bounds observed compositing precision, not just ideal round-to-nearest arithmetic. The + channels' feasible coverage intervals must have a common intersection with `[0,1]`; a channel + with zero tint/background span must differ from that constant by at most `n`. + Coverage can differ between samples. Every sample must satisfy this constraint and at least one sample must exactly equal the tint. Empty samples, absent tint, or an impossible blend fail. This is a conservative bounded envelope, not permission for arbitrary per-channel fuzzy matching. Chrome must be resolved into the supplied background before sampling; a @@ -58,14 +66,27 @@ These check names are immutable only in combination with this profile ID/version one or more identified checks, runs old and candidate obligations together, retains both reports, and rebakes changed baselines explicitly. No check may be weakened by silently relabelling it. +The R03 candidate allowance was amended from `n/2` to `n` after the recorded narrow-span +regression in [MduX's GoldenCheckTests at a3f8b6d](https://github.com/ambroise-leclerc/MduX/blob/a3f8b6daae073472b9a6f6b472ee9818b3faedf8/tests/verify/GoldenCheckTests.cpp). +The shared corpus pins `(215,134,135)` over `(209,214,219)` toward `(219,51,46)`: one composite +fails, two pass, and a foreign green channel still fails. Effective coverage also avoids imposing +equal coverage at each composite. For equal coverage, `1-(1-a)^n` spans the same `[0,1]` interval; +the substantive change is the precision allowance. These are candidate changes, not a +reinterpretation of a released profile. + ## MEDUI-PROFILE-EVIDENCE, version 1 - **E01 — identity.** Every obligation and report row carries the full identity defined in `schemas/evidence.schema.json`: contract SHA; producer name/version/source SHA; profile ID/version; - screen artifact and asset SHA-256 digests; screen/node; locale (explicit string or `null` for + screen artifact SHA-256 and an ordered asset array; screen/node; locale (explicit string or `null` for locale-free); scenario SHA-256 or `static`; capture/frame; check ID/version; backend and rendering - configuration digest. Backend/configuration are explicit strings even for synthetic observations - (`synthetic` and the digest of the synthetic configuration). Identity comparison is fieldwise, + configuration token. `assets` is an array of `{id,digest}` entries: IDs match + `[a-z0-9][a-z0-9./_-]*`, are unique and strictly ascending in ASCII byte order, and each digest + is the lowercase SHA-256 of that artifact's bytes. IDs identify the role and logical resource, + for example `font/main`, `image/ui`, `shader/ui`, `text/fr-fr`. The producer's artifact declaration + fixes those IDs; an empty array explicitly means no assets. No implicit digest roll-up is used. + Malformed identities (including duplicate or unsorted asset IDs) fail aggregation. + Backend/configuration are explicit strings even for synthetic observations. Identity comparison is fieldwise, independent of object-key order. Different locales, scenarios, frames or configurations never satisfy each other's obligations. - **E02 — completeness.** The required obligation array is derived from the selected screen, @@ -79,6 +100,25 @@ and rebakes changed baselines explicitly. No check may be weakened by silently r passes. Otherwise it fails, except for the empty-set/no-rows result above. Each original row outcome remains visible; aggregation never converts unsupported or missing evidence into success. +`configuration` is an opaque producer-scoped token with lowercase SHA-256 shape. Its payload and +encoding belong to the named producer/version/source contract; MedUI defines no cross-producer +configuration object or canonical hash. That producer must bind the token to all relevant rendering +settings and reuse it only for the same configuration. Synthetic vectors use explicit placeholder +tokens; they assert comparison behavior, not configuration hashing. Equal tokens from different +producers never pair because the full producer identity is also compared. + +`backend` is likewise an exact, case-sensitive producer-scoped identifier. `synthetic` identifies +this corpus's synthetic backend; product adapters declare and reuse their own exact spelling. +No aliasing or case folding equates `lavapipe`, `llvmpipe`, or `Mesa lavapipe`. A producer changing +its backend naming or driver configuration must preserve old evidence identities during migration. +Cross-consumer conformance compares operation outcomes, not producer-scoped evidence rows. + +The evidence envelope is a parsed comparison input. Whitespace, object-key ordering and serialized +report bytes are not conformance outputs; MedUI prescribes no canonical report serialization. +Consumers may retain their own canonical committed reports and emit this envelope as a derived +artifact. The schema's rendered profile/check IDs and versions track the candidate registry and +R01–R04; adding a released version requires updating the schema identity under the minor policy. + ## Adoption 0.2.0 compiler outcomes remain the baseline. New schemas and optional profiles are a 0.3.0 diff --git a/tools/schema_check.py b/tools/schema_check.py index 9298624..1b55665 100644 --- a/tools/schema_check.py +++ b/tools/schema_check.py @@ -14,19 +14,37 @@ } -def check_schema(schema): +def resolve_reference(root, ref): + if not isinstance(ref, str) or not ref.startswith("#/"): + raise ValueError(f"only local schema references are supported: {ref}") + target = root + try: + for part in ref[2:].split("/"): + key = part.replace("~1", "/").replace("~0", "~") + target = target[int(key)] if isinstance(target, list) else target[key] + except (KeyError, IndexError, TypeError, ValueError) as error: + raise ValueError(f"unresolved schema reference: {ref}") from error + if not isinstance(target, dict): + raise ValueError(f"schema reference does not target a schema object: {ref}") + return target + + +def check_schema(schema, root=None): + root = schema if root is None else root if not isinstance(schema, dict): raise ValueError("schemas must be objects") unknown = set(schema) - KEYWORDS if unknown: raise ValueError(f"unsupported schema keywords: {sorted(unknown)}") + if "$ref" in schema: + resolve_reference(root, schema["$ref"]) for key in ("properties", "$defs"): for child in schema.get(key, {}).values(): - check_schema(child) + check_schema(child, root) if "items" in schema: - check_schema(schema["items"]) + check_schema(schema["items"], root) for child in schema.get("anyOf", []): - check_schema(child) + check_schema(child, root) def equal(left, right): @@ -44,12 +62,7 @@ def errors(value, schema, root=None, path="$"): root = schema if root is None else root result = [] if "$ref" in schema: - ref = schema["$ref"] - if not ref.startswith("#/"): - raise ValueError(f"only local schema references are supported: {ref}") - target = root - for part in ref[2:].split("/"): - target = target[part.replace("~1", "/").replace("~0", "~")] + target = resolve_reference(root, schema["$ref"]) result.extend(errors(value, target, root, path)) if "anyOf" in schema and not any( not errors(value, child, root, path) for child in schema["anyOf"] @@ -96,6 +109,7 @@ def errors(value, schema, root=None, path="$"): if isinstance(value, str): if len(value) < schema.get("minLength", 0): result.append(f"{path}: string too short") + # JSON Schema patterns match anywhere; schemas use anchors when the whole string matters. if "pattern" in schema and not re.search(schema["pattern"], value): result.append(f"{path}: pattern mismatch") if isinstance(value, (int, float)) and not isinstance(value, bool): diff --git a/tools/test_schema_check.py b/tools/test_schema_check.py index bc1d414..c8333c7 100644 --- a/tools/test_schema_check.py +++ b/tools/test_schema_check.py @@ -59,6 +59,22 @@ def test_unsupported_constraints_fail_closed(self): with self.assertRaisesRegex(ValueError, "only local"): validate({}, {"$ref": "https://example.invalid/schema"}) + def test_unanchored_patterns_use_json_schema_search_semantics(self): + self.assertFalse(validate("apple", {"pattern": "p"})) + self.assertTrue(validate("apple", {"pattern": "^p$"})) + + def test_dangling_references_are_reported_even_in_unused_properties(self): + schema = {"properties": {"unused": {"$ref": "#/$defs/missing"}}} + with self.assertRaisesRegex(ValueError, "unresolved schema reference"): + validate({}, schema) + with self.assertRaisesRegex(ValueError, "does not target a schema object"): + validate({}, {"title": "not a schema", "$ref": "#/title"}) + + def test_escaped_reference_tokens(self): + schema = {"$defs": {"a/b~c": {"type": "integer"}}, "$ref": "#/$defs/a~1b~0c"} + self.assertFalse(validate(1, schema)) + self.assertTrue(validate("1", schema)) + if __name__ == "__main__": unittest.main() diff --git a/tools/test_validate.py b/tools/test_validate.py index 3a63434..77a97ea 100644 --- a/tools/test_validate.py +++ b/tools/test_validate.py @@ -23,9 +23,9 @@ def setUp(self): def rewrite(self, name, change): path = self.root / name - value = json.loads(path.read_text()) + value = json.loads(path.read_text(encoding="utf-8")) change(value) - path.write_text(json.dumps(value)) + path.write_text(json.dumps(value), encoding="utf-8") def assert_rejected(self, message): result = subprocess.run([sys.executable, str(self.root / "tools/validate.py")], @@ -58,6 +58,25 @@ def test_undocumented_rule(self): lambda registry: registry["profiles"][0]["rules"].append("R99")) self.assert_rejected("registry rules differ") + def test_rendered_identity_names_the_exercised_check(self): + for field in ("captureIdentity", "baselineIdentity"): + with self.subTest(field=field): + self.rewrite("conformance/profiles/hash-match.json", lambda case: + case["inputs"][field]["check"].update(id="extent-equality")) + self.assert_rejected("identity check differs from the rendered operation") + self.rewrite("conformance/profiles/hash-match.json", lambda case: + case["inputs"][field]["check"].update(id="rgba8-sha256")) + + def test_dangling_reference_has_a_readable_failure(self): + self.rewrite("schemas/evidence.schema.json", lambda schema: + schema["properties"]["obligations"]["items"].update({"$ref": "#/$defs/missing"})) + self.assert_rejected("unresolved schema reference: #/$defs/missing") + + def test_evidence_check_registry_drift(self): + self.rewrite("schemas/evidence.schema.json", lambda schema: + schema["$defs"]["identity"]["properties"]["check"]["properties"]["id"]["enum"].pop()) + self.assert_rejected("evidence profile/check identities differ") + if __name__ == "__main__": unittest.main() diff --git a/tools/validate.py b/tools/validate.py index 2f413ee..88f2a13 100644 --- a/tools/validate.py +++ b/tools/validate.py @@ -214,6 +214,15 @@ def main() -> None: declared[key] = set(profile["rules"]) if set().union(*declared.values()) != documented_rules: fail("profile registry rules differ from spec/profiles.md") + evidence_identity = schemas["evidence"]["$defs"]["identity"]["properties"] + evidence_profile = evidence_identity["profile"]["properties"] + evidence_key = (evidence_profile["id"]["const"], evidence_profile["version"]["const"]) + evidence_check = evidence_identity["check"]["properties"] + documented_checks = set(re.findall(r"\*\*R[0-9]{2} — ([a-z0-9-]+)/([0-9]+)\.", profile_text)) + schema_checks = {(check, str(evidence_check["version"]["const"])) + for check in evidence_check["id"]["enum"]} + if evidence_key not in declared or schema_checks != documented_checks: + fail("evidence profile/check identities differ from the registry or specification") claim_schema = properties["profiles"]["items"] schema_claims = { (identifier, claim_schema["properties"]["version"]["const"]) @@ -238,6 +247,13 @@ def main() -> None: if key not in declared or not set(case["rules"]) <= declared[key]: fail(f"{case['id']} references unknown profile rules") coverage[key].update(case["rules"]) + inputs = case["inputs"] + if inputs["operation"] == "rendered-check": + for field in ("captureIdentity", "baselineIdentity"): + if field in inputs and inputs[field].get("check") != { + "id": inputs.get("check"), "version": key[1] + }: + fail(f"{case['id']} {field}: identity check differs from the rendered operation") else: problems = validate(case["document"], schemas[case["schema"]]) if (not problems) != case["valid"]: @@ -253,4 +269,7 @@ def main() -> None: if __name__ == "__main__": - main() + try: + main() + except ValueError as error: + fail(str(error))