| 5 | "description": "What a client's runner records for one renderer; tools/report.mjs turns one or more of these into the report. See CLIENTS.md.", |
| 6 | "type": "object", |
| 7 | "required": ["platform", "renderer", "runs"], |
| 8 | "properties": { |
| 9 | "platform": { "type": "string", "description": "ios, macos, android, desktop, web, …" }, |
| 10 | "renderer": { "type": "string", "description": "The renderer's name in the client (e.g. wkwebview, twidget-core, litehtml-swift)." }, |
| 11 | "engine": { "type": "string", "description": "Free text: OS / engine version, device." }, |
| 12 | "framework": { "type": "string", "description": "The widget-sandbox tag or commit the client is on." }, |
| 13 | "commit": { "type": "string", "description": "The client's own commit." }, |
| 14 | "policy": { "type": "string", "enum": ["strict", "compat"] }, |
| 15 | "features": { "type": "array", "items": { "type": "string" }, "description": "config.features the host passed (webAnimations, …)." }, |
| 16 | "date": { "type": "string" }, |
| 17 | "runs": { |
| 18 | "type": "array", |
| 19 | "items": { |
| 20 | "type": "object", |
| 21 | "required": ["id", "theme", "width", "loaded", "checks"], |
| 22 | "properties": { |
| 23 | "id": { "type": "string", "description": "manifest.tests[].id, e.g. auto/03-layout-a" }, |
| 24 | "theme": { "type": "string", "enum": ["light", "dark"] }, |
| 25 | "width": { "type": "number", "description": "Widget width in CSS px (points / dp)." }, |
| 26 | "loaded": { "type": "boolean" }, |
| 27 | "dead": { "type": ["string", "null"], "description": "Why the runtime died, if it did." }, |
| 28 | "status": { "type": "string", "description": "The last published status (done / awaiting / running)." }, |
| 29 | "checks": { |
| 30 | "type": "array", |
| 31 | "description": "The `checks` array of the last data-conformance value, verbatim: [catalogue id, name, status, detail].", |
| 32 | "items": { "type": "array", "prefixItems": [{ "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }] } |
| 33 | }, |
| 34 | "stages": { |
| 35 | "type": "array", |
| 36 | "description": "Auto set: one entry per stage of manifest.tests[].stages for this theme. Either a crop (judged by report.mjs) or a judgement made with tools/diff.mjs.", |
| 37 | "items": { |
| 38 | "type": "object", |
| 39 | "required": ["name"], |
| 40 | "properties": { |
| 41 | "name": { "type": "string" }, |
| 42 | "crop": { "type": "string", "description": "PNG of the stage at DPR 2 (size × 2), path relative to the run file." }, |
| 43 | "status": { "type": "string" }, |
| 44 | "diff": { "type": ["number", "null"] }, |
| 45 | "maxDiff": { "type": "number" }, |
| 46 | "detail": { "type": "string" } |
| 47 | } |
| 48 | } |
| 49 | }, |
| 50 | "observed": { |
| 51 | "type": "object", |
| 52 | "description": "What the host saw, for manifest.tests[].host.", |
| 53 | "properties": { |
| 54 | "bridge": { "type": "array", "items": { "type": "object", "properties": { "method": { "type": "string" }, "args": { "type": "array" } } }, "description": "Bridge calls the host accepted (after the gesture gate), in order." }, |
| 55 | "height": { "type": "number", "description": "The bubble height the host gave the widget at the end (CSS px)." }, |
| 56 | "chatFocused": { "type": "boolean", "description": "The chat input still had the focus after the widget booted, before any input." }, |
| 57 | "focusHolder": { "type": "string" }, |
| 58 | "syntheticInput": { "type": "boolean", "description": "The runner's input grants no user gesture (gesture-gated host checks are skipped)." } |
| 59 | } |
| 60 | }, |
| 61 | "host": { "type": "array", "description": "Alternatively, host checks already judged: [{id, name, status, detail}]." }, |
| 62 | "skippedActions": { "type": "array", "items": { "type": ["integer", "string"] }, "description": "Indices into manifest.tests[].actions (or action kinds) this client could not perform; the checks they feed are skipped." }, |
| 63 | "errors": { "type": "array", "items": { "type": "string" }, "description": "Uncaught widget errors." } |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 |