{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://vclaw.dev/schemas/video/artifacts/motion-artifact-qc.schema.json",
  "title": "MotionQcReport",
  "description": "Dense-frame motion-artifact vision QC of a project's rendered clips (breath vapour, grain-as-fog, morphing, vanishing props) — the defect classes a still-frame QC pass is blind to. Written by `vclaw video motion-qc` to artifacts/motion-artifact-qc.json.",
  "type": "object",
  "required": ["projectSlug", "ok", "generatedAt", "scenes", "findings"],
  "additionalProperties": false,
  "properties": {
    "projectSlug": { "type": "string", "minLength": 1 },
    "ok": {
      "type": "boolean",
      "description": "False when any scene has any motion-artifact finding."
    },
    "generatedAt": { "type": "string", "format": "date-time" },
    "scenes": {
      "type": "array",
      "items": { "$ref": "#/definitions/SceneResult" }
    },
    "findings": {
      "type": "array",
      "description": "Flat operator-facing list of every artifact found (vapour + grain-fog + morphing + vanished).",
      "items": { "type": "string" }
    }
  },
  "definitions": {
    "SceneResult": {
      "type": "object",
      "required": [
        "sceneIndex",
        "clipChecked",
        "framesSampled",
        "breathVapour",
        "grainFog",
        "morphing",
        "vanishedElements"
      ],
      "additionalProperties": false,
      "properties": {
        "sceneIndex": { "type": "integer", "minimum": 0 },
        "clipChecked": {
          "type": "boolean",
          "description": "True when the scene had a rendered VIDEO clip that was actually sampled (images and unrendered scenes are skipped)."
        },
        "framesSampled": {
          "type": "integer",
          "minimum": 0,
          "description": "Number of frames actually extracted and inspected."
        },
        "breathVapour": {
          "type": "array",
          "description": "Breath-vapour / condensation-puff findings, deduped and tagged with the frame fraction (e.g. \"t≈0.40: vapour puff at the speaker's mouth\").",
          "items": { "type": "string" }
        },
        "grainFog": {
          "type": "array",
          "description": "Film-grain-rendering-as-fog findings over dark regions, deduped and tagged with the frame fraction.",
          "items": { "type": "string" }
        },
        "morphing": {
          "type": "array",
          "description": "Objects/faces/limbs that smeared or transformed between adjacent samples, deduped and tagged with the pair window (e.g. \"t≈0.20→0.40: sword melts into a staff\").",
          "items": { "type": "string" }
        },
        "vanishedElements": {
          "type": "array",
          "description": "Solid objects present at one sample but absent at the next without leaving frame, deduped and tagged with the pair window.",
          "items": { "type": "string" }
        }
      }
    }
  }
}
