Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.0
0.3.0
15 changes: 15 additions & 0 deletions conformance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
14 changes: 14 additions & 0 deletions conformance/contracts/manifest-legacy.json
Original file line number Diff line number Diff line change
@@ -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
}
24 changes: 24 additions & 0 deletions conformance/contracts/manifest-profile-duplicate.json
Original file line number Diff line number Diff line change
@@ -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
}
15 changes: 15 additions & 0 deletions conformance/contracts/manifest-profile-empty.json
Original file line number Diff line number Diff line change
@@ -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
}
21 changes: 21 additions & 0 deletions conformance/contracts/manifest-profile-extra.json
Original file line number Diff line number Diff line change
@@ -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
}
20 changes: 20 additions & 0 deletions conformance/contracts/manifest-profile-unknown.json
Original file line number Diff line number Diff line change
@@ -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
}
20 changes: 20 additions & 0 deletions conformance/contracts/manifest-profile-version.json
Original file line number Diff line number Diff line change
@@ -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
}
24 changes: 24 additions & 0 deletions conformance/contracts/manifest-profiles.json
Original file line number Diff line number Diff line change
@@ -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
}
15 changes: 15 additions & 0 deletions conformance/contracts/manifest-unknown-key.json
Original file line number Diff line number Diff line change
@@ -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
}
46 changes: 46 additions & 0 deletions conformance/contracts/report-asset-duplicate.json
Original file line number Diff line number Diff line change
@@ -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
}
37 changes: 37 additions & 0 deletions conformance/contracts/report-asset-free.json
Original file line number Diff line number Diff line change
@@ -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
}
42 changes: 42 additions & 0 deletions conformance/contracts/report-asset-invalid-digest.json
Original file line number Diff line number Diff line change
@@ -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
}
42 changes: 42 additions & 0 deletions conformance/contracts/report-asset-invalid-id.json
Original file line number Diff line number Diff line change
@@ -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
}
Loading
Loading