{
  "portaShape": {
    "formatVersion": "0.1",
    "kind": "mvp-example",
    "id": "example.image-metadata-to-gallery-card",
    "name": "Image metadata to gallery card",
    "mvpStatus": "complete",
    "summary": "MVP playground fixture for transforming asset.image_metadata into ui.gallery_card.",
    "sourceShape": {
      "id": "asset.image_metadata",
      "sampleId": "asset.image_metadata.sample",
      "variables": [
        {
          "id": "filename",
          "label": "Filename",
          "value": "sample filename",
          "authority": "source-snapshot"
        },
        {
          "id": "alt_text",
          "label": "Alt Text",
          "value": "sample alt text",
          "authority": "source-snapshot"
        },
        {
          "id": "dimensions",
          "label": "Dimensions",
          "value": "sample dimensions",
          "authority": "source-snapshot"
        },
        {
          "id": "caption",
          "label": "Caption",
          "value": "sample caption",
          "authority": "source-snapshot"
        },
        {
          "id": "credit",
          "label": "Credit",
          "value": "sample credit",
          "authority": "source-snapshot"
        },
        {
          "id": "tags",
          "label": "Tags",
          "value": "sample tags",
          "authority": "source-snapshot"
        }
      ]
    },
    "destinationShape": {
      "id": "ui.gallery_card",
      "sampleId": "ui.gallery_card.template",
      "variables": [
        {
          "id": "image_src",
          "label": "Image Src",
          "proposedValue": "proposed image src",
          "authority": "proposed-output"
        },
        {
          "id": "alt",
          "label": "Alt",
          "proposedValue": "proposed alt",
          "authority": "proposed-output"
        },
        {
          "id": "caption",
          "label": "Caption",
          "proposedValue": "proposed caption",
          "authority": "proposed-output"
        },
        {
          "id": "meta",
          "label": "Meta",
          "proposedValue": "proposed meta",
          "authority": "proposed-output"
        },
        {
          "id": "tags",
          "label": "Tags",
          "proposedValue": "proposed tags",
          "authority": "proposed-output"
        }
      ]
    },
    "controls": [
      {
        "id": "control-image-metadata-to-gallery-card-primary",
        "label": "Review primary mapping",
        "type": "mapping-inspector",
        "edits": [
          "mapping.sources",
          "mapping.operation",
          "destination.proposedValue"
        ]
      },
      {
        "id": "control-image-metadata-to-gallery-card-save",
        "label": "Save as new shape",
        "type": "action",
        "writes": "artifact-library"
      }
    ],
    "mappings": [
      {
        "id": "map-image-metadata-to-gallery-card-image-src",
        "sources": [
          "filename"
        ],
        "destination": "image_src",
        "operation": "componentize",
        "editable": true,
        "confidence": 0.86
      },
      {
        "id": "map-image-metadata-to-gallery-card-alt",
        "sources": [
          "alt_text"
        ],
        "destination": "alt",
        "operation": "componentize",
        "editable": false,
        "confidence": 0.78
      },
      {
        "id": "map-image-metadata-to-gallery-card-caption",
        "sources": [
          "dimensions"
        ],
        "destination": "caption",
        "operation": "componentize",
        "editable": false,
        "confidence": 0.78
      },
      {
        "id": "map-image-metadata-to-gallery-card-meta",
        "sources": [
          "caption"
        ],
        "destination": "meta",
        "operation": "componentize",
        "editable": false,
        "confidence": 0.78
      },
      {
        "id": "map-image-metadata-to-gallery-card-tags",
        "sources": [
          "credit"
        ],
        "destination": "tags",
        "operation": "componentize",
        "editable": false,
        "confidence": 0.78
      }
    ],
    "preview": {
      "source": {
        "filename": "sample filename",
        "alt_text": "sample alt_text",
        "dimensions": "sample dimensions",
        "caption": "sample caption",
        "credit": "sample credit",
        "tags": "sample tags"
      },
      "proposed": {
        "image_src": "proposed image_src",
        "alt": "proposed alt",
        "caption": "proposed caption",
        "meta": "proposed meta",
        "tags": "proposed tags"
      },
      "destination": "ui.gallery_card"
    },
    "workflow": {
      "steps": [
        "import-source-shape",
        "inspect-variables",
        "map-values",
        "preview-transform",
        "validate-result",
        "save-as-new-shape",
        "export-posh-artifact"
      ]
    },
    "policy": {
      "requiresApproval": false,
      "checks": [
        "schema-valid",
        "authority-declared",
        "loss-reviewed",
        "provenance-recorded"
      ]
    },
    "snapshot": {
      "capturedAt": "2026-07-20T00:00:00Z",
      "sourceShape": "asset.image_metadata",
      "destinationShape": "ui.gallery_card"
    },
    "runEvidence": {
      "status": "sample-passed",
      "assertions": [
        "all-required-destination-values-populated",
        "mapping-confidence-recorded",
        "export-contains-workflow-policy-snapshot-and-evidence"
      ]
    }
  }
}
