{
  "portaShape": {
    "formatVersion": "0.1",
    "kind": "mvp-example",
    "id": "example.ecommerce-item-to-product-card",
    "name": "Ecommerce item to product card",
    "mvpStatus": "complete",
    "summary": "MVP playground fixture for transforming commerce.product_record into ui.product_card.",
    "sourceShape": {
      "id": "commerce.product_record",
      "sampleId": "commerce.product_record.sample",
      "variables": [
        {
          "id": "name",
          "label": "Name",
          "value": "sample name",
          "authority": "source-snapshot"
        },
        {
          "id": "sku",
          "label": "Sku",
          "value": "sample sku",
          "authority": "source-snapshot"
        },
        {
          "id": "price_amount",
          "label": "Price Amount",
          "value": "sample price amount",
          "authority": "source-snapshot"
        },
        {
          "id": "availability",
          "label": "Availability",
          "value": "sample availability",
          "authority": "source-snapshot"
        },
        {
          "id": "description",
          "label": "Description",
          "value": "sample description",
          "authority": "source-snapshot"
        },
        {
          "id": "image_url",
          "label": "Image Url",
          "value": "sample image url",
          "authority": "source-snapshot"
        }
      ]
    },
    "destinationShape": {
      "id": "ui.product_card",
      "sampleId": "ui.product_card.template",
      "variables": [
        {
          "id": "image",
          "label": "Image",
          "proposedValue": "proposed image",
          "authority": "proposed-output"
        },
        {
          "id": "title",
          "label": "Title",
          "proposedValue": "proposed title",
          "authority": "proposed-output"
        },
        {
          "id": "sku_label",
          "label": "Sku Label",
          "proposedValue": "proposed sku label",
          "authority": "proposed-output"
        },
        {
          "id": "price",
          "label": "Price",
          "proposedValue": "proposed price",
          "authority": "proposed-output"
        },
        {
          "id": "badge",
          "label": "Badge",
          "proposedValue": "proposed badge",
          "authority": "proposed-output"
        },
        {
          "id": "cta",
          "label": "Cta",
          "proposedValue": "proposed cta",
          "authority": "proposed-output"
        }
      ]
    },
    "controls": [
      {
        "id": "control-ecommerce-item-to-product-card-primary",
        "label": "Review primary mapping",
        "type": "mapping-inspector",
        "edits": [
          "mapping.sources",
          "mapping.operation",
          "destination.proposedValue"
        ]
      },
      {
        "id": "control-ecommerce-item-to-product-card-save",
        "label": "Save as new shape",
        "type": "action",
        "writes": "artifact-library"
      }
    ],
    "mappings": [
      {
        "id": "map-ecommerce-item-to-product-card-image",
        "sources": [
          "name"
        ],
        "destination": "image",
        "operation": "generate",
        "editable": true,
        "confidence": 0.86
      },
      {
        "id": "map-ecommerce-item-to-product-card-title",
        "sources": [
          "sku"
        ],
        "destination": "title",
        "operation": "generate",
        "editable": false,
        "confidence": 0.78
      },
      {
        "id": "map-ecommerce-item-to-product-card-sku-label",
        "sources": [
          "price_amount"
        ],
        "destination": "sku_label",
        "operation": "generate",
        "editable": false,
        "confidence": 0.78
      },
      {
        "id": "map-ecommerce-item-to-product-card-price",
        "sources": [
          "availability"
        ],
        "destination": "price",
        "operation": "generate",
        "editable": false,
        "confidence": 0.78
      },
      {
        "id": "map-ecommerce-item-to-product-card-badge",
        "sources": [
          "description"
        ],
        "destination": "badge",
        "operation": "generate",
        "editable": false,
        "confidence": 0.78
      },
      {
        "id": "map-ecommerce-item-to-product-card-cta",
        "sources": [
          "image_url"
        ],
        "destination": "cta",
        "operation": "generate",
        "editable": false,
        "confidence": 0.78
      }
    ],
    "preview": {
      "source": {
        "name": "sample name",
        "sku": "sample sku",
        "price_amount": "sample price_amount",
        "availability": "sample availability",
        "description": "sample description",
        "image_url": "sample image_url"
      },
      "proposed": {
        "image": "proposed image",
        "title": "proposed title",
        "sku_label": "proposed sku_label",
        "price": "proposed price",
        "badge": "proposed badge",
        "cta": "proposed cta"
      },
      "destination": "ui.product_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": "commerce.product_record",
      "destinationShape": "ui.product_card"
    },
    "runEvidence": {
      "status": "sample-passed",
      "assertions": [
        "all-required-destination-values-populated",
        "mapping-confidence-recorded",
        "export-contains-workflow-policy-snapshot-and-evidence"
      ]
    }
  }
}
