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-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 new file mode 100644 index 0000000..5338843 --- /dev/null +++ b/conformance/contracts/report-duplicate-obligation.json @@ -0,0 +1,73 @@ +{ + "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": [ + { + "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" + }, + { + "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-extra-identity.json b/conformance/contracts/report-extra-identity.json new file mode 100644 index 0000000..a1d5de7 --- /dev/null +++ b/conformance/contracts/report-extra-identity.json @@ -0,0 +1,43 @@ +{ + "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": [ + { + "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", + "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..3f8cdd0 --- /dev/null +++ b/conformance/contracts/report-fail.json @@ -0,0 +1,77 @@ +{ + "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": [ + { + "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": "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..5229a64 --- /dev/null +++ b/conformance/contracts/report-missing-artifact.json @@ -0,0 +1,76 @@ +{ + "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": [ + { + "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 + }, + "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" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-assets.json b/conformance/contracts/report-missing-assets.json new file mode 100644 index 0000000..182e2f3 --- /dev/null +++ b/conformance/contracts/report-missing-assets.json @@ -0,0 +1,71 @@ +{ + "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": [ + { + "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", + "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..07408cb --- /dev/null +++ b/conformance/contracts/report-missing-backend.json @@ -0,0 +1,76 @@ +{ + "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": [ + { + "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 + }, + "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..7ab5124 --- /dev/null +++ b/conformance/contracts/report-missing-baseline.json @@ -0,0 +1,77 @@ +{ + "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": [ + { + "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": "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..cab9a21 --- /dev/null +++ b/conformance/contracts/report-missing-capture.json @@ -0,0 +1,76 @@ +{ + "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": [ + { + "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", + "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..612a671 --- /dev/null +++ b/conformance/contracts/report-missing-check.json @@ -0,0 +1,73 @@ +{ + "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": [ + { + "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, + "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..e26a4a4 --- /dev/null +++ b/conformance/contracts/report-missing-configuration.json @@ -0,0 +1,76 @@ +{ + "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": [ + { + "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" + }, + "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..6459bbc --- /dev/null +++ b/conformance/contracts/report-missing-contract.json @@ -0,0 +1,76 @@ +{ + "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": [ + { + "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": { + "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" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-frame.json b/conformance/contracts/report-missing-frame.json new file mode 100644 index 0000000..f1711b6 --- /dev/null +++ b/conformance/contracts/report-missing-frame.json @@ -0,0 +1,76 @@ +{ + "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": [ + { + "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", + "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..ec298c4 --- /dev/null +++ b/conformance/contracts/report-missing-locale.json @@ -0,0 +1,76 @@ +{ + "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": [ + { + "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", + "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..ae4fee4 --- /dev/null +++ b/conformance/contracts/report-missing-node.json @@ -0,0 +1,76 @@ +{ + "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": [ + { + "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", + "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..667a62b --- /dev/null +++ b/conformance/contracts/report-missing-producer.json @@ -0,0 +1,72 @@ +{ + "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": [ + { + "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", + "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" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-profile.json b/conformance/contracts/report-missing-profile.json new file mode 100644 index 0000000..e19b611 --- /dev/null +++ b/conformance/contracts/report-missing-profile.json @@ -0,0 +1,73 @@ +{ + "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": [ + { + "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" + }, + "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" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-missing-scenario.json b/conformance/contracts/report-missing-scenario.json new file mode 100644 index 0000000..822d94e --- /dev/null +++ b/conformance/contracts/report-missing-scenario.json @@ -0,0 +1,76 @@ +{ + "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": [ + { + "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, + "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..d52c287 --- /dev/null +++ b/conformance/contracts/report-missing-screen.json @@ -0,0 +1,76 @@ +{ + "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": [ + { + "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" + } + ], + "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..e234e96 --- /dev/null +++ b/conformance/contracts/report-not-run.json @@ -0,0 +1,77 @@ +{ + "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": [ + { + "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": "not-run" + } + ] + }, + "valid": true +} diff --git a/conformance/contracts/report-pass.json b/conformance/contracts/report-pass.json new file mode 100644 index 0000000..a8c25b6 --- /dev/null +++ b/conformance/contracts/report-pass.json @@ -0,0 +1,77 @@ +{ + "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": [ + { + "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" + } + ] + }, + "valid": true +} diff --git a/conformance/contracts/report-unknown-outcome.json b/conformance/contracts/report-unknown-outcome.json new file mode 100644 index 0000000..f4dc3c0 --- /dev/null +++ b/conformance/contracts/report-unknown-outcome.json @@ -0,0 +1,77 @@ +{ + "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": [ + { + "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": "skipped" + } + ] + }, + "valid": false +} diff --git a/conformance/contracts/report-unsupported.json b/conformance/contracts/report-unsupported.json new file mode 100644 index 0000000..8c1382e --- /dev/null +++ b/conformance/contracts/report-unsupported.json @@ -0,0 +1,77 @@ +{ + "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": [ + { + "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": "unsupported" + } + ] + }, + "valid": true +} 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/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..50dfb62 --- /dev/null +++ b/conformance/profiles/evidence-duplicate-obligation.json @@ -0,0 +1,118 @@ +{ + "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": [ + { + "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" + }, + { + "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/evidence-duplicate.json b/conformance/profiles/evidence-duplicate.json new file mode 100644 index 0000000..9ebcb2c --- /dev/null +++ b/conformance/profiles/evidence-duplicate.json @@ -0,0 +1,121 @@ +{ + "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": [ + { + "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" + }, + { + "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/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..cff3237 --- /dev/null +++ b/conformance/profiles/evidence-fail.json @@ -0,0 +1,90 @@ +{ + "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": [ + { + "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": "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..a3d5016 --- /dev/null +++ b/conformance/profiles/evidence-missing-baseline.json @@ -0,0 +1,90 @@ +{ + "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": [ + { + "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": "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..7dc30b9 --- /dev/null +++ b/conformance/profiles/evidence-not-run.json @@ -0,0 +1,90 @@ +{ + "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": [ + { + "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": "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..1b57951 --- /dev/null +++ b/conformance/profiles/evidence-omitted.json @@ -0,0 +1,52 @@ +{ + "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": [ + { + "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": [] + }, + "expected": { + "outcome": "fail" + } +} diff --git a/conformance/profiles/evidence-pass.json b/conformance/profiles/evidence-pass.json new file mode 100644 index 0000000..735f321 --- /dev/null +++ b/conformance/profiles/evidence-pass.json @@ -0,0 +1,90 @@ +{ + "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": [ + { + "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": "pass", + "rowOutcomes": [ + "pass" + ] + } +} diff --git a/conformance/profiles/evidence-unexpected.json b/conformance/profiles/evidence-unexpected.json new file mode 100644 index 0000000..a257426 --- /dev/null +++ b/conformance/profiles/evidence-unexpected.json @@ -0,0 +1,55 @@ +{ + "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": [ + { + "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/evidence-unsupported.json b/conformance/profiles/evidence-unsupported.json new file mode 100644 index 0000000..665b27b --- /dev/null +++ b/conformance/profiles/evidence-unsupported.json @@ -0,0 +1,90 @@ +{ + "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": [ + { + "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": "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..27657db --- /dev/null +++ b/conformance/profiles/hash-backend.json @@ -0,0 +1,109 @@ +{ + "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": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "rgba8-sha256", + "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": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "rgba8-sha256", + "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..8a51a97 --- /dev/null +++ b/conformance/profiles/hash-crop.json @@ -0,0 +1,109 @@ +{ + "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": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "rgba8-sha256", + "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": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "rgba8-sha256", + "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..7b81ef2 --- /dev/null +++ b/conformance/profiles/hash-empty.json @@ -0,0 +1,109 @@ +{ + "id": "MEDUI-PROFILE-CASE-HASH-EMPTY", + "profile": { + "id": "MEDUI-PROFILE-RENDERED", + "version": 1 + }, + "rules": [ + "R04" + ], + "description": "A zero-area region hashes the empty byte string: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.", + "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": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "rgba8-sha256", + "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": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "rgba8-sha256", + "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..e99e509 --- /dev/null +++ b/conformance/profiles/hash-match.json @@ -0,0 +1,109 @@ +{ + "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": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "rgba8-sha256", + "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": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "rgba8-sha256", + "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..fb2a090 --- /dev/null +++ b/conformance/profiles/hash-mismatch.json @@ -0,0 +1,109 @@ +{ + "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": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "rgba8-sha256", + "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": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "rgba8-sha256", + "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..b2db08b --- /dev/null +++ b/conformance/profiles/hash-missing.json @@ -0,0 +1,109 @@ +{ + "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": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "rgba8-sha256", + "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": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "rgba8-sha256", + "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..0e98f68 --- /dev/null +++ b/conformance/profiles/hash-outside.json @@ -0,0 +1,109 @@ +{ + "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": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "rgba8-sha256", + "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": [ + { + "id": "font/main", + "digest": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" + } + ], + "screen": "screen", + "node": "node", + "locale": null, + "scenario": "static", + "capture": "capture", + "frame": 0, + "check": { + "id": "rgba8-sha256", + "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..3671a51 --- /dev/null +++ b/conformance/profiles/identity-artifact.json @@ -0,0 +1,87 @@ +{ + "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": [ + { + "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": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "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-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 new file mode 100644 index 0000000..b5fe26e --- /dev/null +++ b/conformance/profiles/identity-assets.json @@ -0,0 +1,87 @@ +{ + "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": [ + { + "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": "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-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 new file mode 100644 index 0000000..4892ef2 --- /dev/null +++ b/conformance/profiles/identity-backend.json @@ -0,0 +1,87 @@ +{ + "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": [ + { + "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": "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..9b732bc --- /dev/null +++ b/conformance/profiles/identity-capture.json @@ -0,0 +1,87 @@ +{ + "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": [ + { + "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": "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..f7a5fa0 --- /dev/null +++ b/conformance/profiles/identity-check.json @@ -0,0 +1,87 @@ +{ + "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": [ + { + "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": "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..71e47e7 --- /dev/null +++ b/conformance/profiles/identity-configuration.json @@ -0,0 +1,87 @@ +{ + "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": [ + { + "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": "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..c771553 --- /dev/null +++ b/conformance/profiles/identity-contract.json @@ -0,0 +1,87 @@ +{ + "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": [ + { + "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": "ffffffffffffffffffffffffffffffffffffffff", + "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-frame.json b/conformance/profiles/identity-frame.json new file mode 100644 index 0000000..df5a409 --- /dev/null +++ b/conformance/profiles/identity-frame.json @@ -0,0 +1,87 @@ +{ + "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": [ + { + "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": 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..70f362d --- /dev/null +++ b/conformance/profiles/identity-key-order.json @@ -0,0 +1,87 @@ +{ + "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": [ + { + "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": { + "configuration": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", + "backend": "synthetic", + "check": { + "id": "extent-equality", + "version": 1 + }, + "frame": 0, + "capture": "capture", + "scenario": "static", + "locale": null, + "node": "node", + "screen": "screen", + "assets": [ + { + "id": "font/main", + "digest": "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..4294509 --- /dev/null +++ b/conformance/profiles/identity-locale.json @@ -0,0 +1,87 @@ +{ + "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": [ + { + "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": "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..0bf6064 --- /dev/null +++ b/conformance/profiles/identity-node.json @@ -0,0 +1,87 @@ +{ + "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": [ + { + "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": "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-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 new file mode 100644 index 0000000..b92c4d1 --- /dev/null +++ b/conformance/profiles/identity-producer.json @@ -0,0 +1,87 @@ +{ + "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": [ + { + "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-scenario.json b/conformance/profiles/identity-scenario.json new file mode 100644 index 0000000..c5881f2 --- /dev/null +++ b/conformance/profiles/identity-scenario.json @@ -0,0 +1,87 @@ +{ + "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": [ + { + "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": "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..a0ebd18 --- /dev/null +++ b/conformance/profiles/identity-screen.json @@ -0,0 +1,87 @@ +{ + "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": [ + { + "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": "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-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-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..c9da32b --- /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": [ + 103, + 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..81d3f58 --- /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": [ + 104, + 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..54acff6 --- /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": [ + 106, + 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..0a54669 --- /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": [ + 107, + 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/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/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..20546e8 --- /dev/null +++ b/schemas/evidence.schema.json @@ -0,0 +1,207 @@ +{ + "$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": "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", + "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, + "description": "Exact case-sensitive producer-scoped backend identifier. No alias canonicalization is applied." + }, + "configuration": { + "type": "string", + "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/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..c675e87 --- /dev/null +++ b/spec/profiles.md @@ -0,0 +1,129 @@ +# 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. +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 + +`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 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 + 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. + +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 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 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, + 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. + +`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 +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..1b55665 --- /dev/null +++ b/tools/schema_check.py @@ -0,0 +1,125 @@ +"""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 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, root) + if "items" in schema: + check_schema(schema["items"], root) + for child in schema.get("anyOf", []): + check_schema(child, root) + + +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: + 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"] + ): + 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") + # 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): + 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..c8333c7 --- /dev/null +++ b/tools/test_schema_check.py @@ -0,0 +1,80 @@ +"""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"}) + + 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 new file mode 100644 index 0000000..77a97ea --- /dev/null +++ b/tools/test_validate.py @@ -0,0 +1,82 @@ +"""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(encoding="utf-8")) + change(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")], + 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") + + 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 566a800..88f2a13 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,8 +202,74 @@ 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") + 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"]) + 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"]) + 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"]: + 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__": - main() + try: + main() + except ValueError as error: + fail(str(error))