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