{
  "portaShape": {
    "formatVersion": "0.1",
    "kind": "mvp-example",
    "id": "example.theme-options-to-user-preferences",
    "name": "Theme options to user preferences",
    "mvpStatus": "complete",
    "summary": "MVP playground fixture for transforming theme.global_settings into user.theme_options.",
    "sourceShape": {
      "id": "theme.global_settings",
      "sampleId": "theme.global_settings.sample",
      "variables": [
        {
          "id": "default_theme",
          "label": "Default Theme",
          "value": "sample default theme",
          "authority": "source-snapshot"
        },
        {
          "id": "density",
          "label": "Density",
          "value": "sample density",
          "authority": "source-snapshot"
        },
        {
          "id": "contrast",
          "label": "Contrast",
          "value": "sample contrast",
          "authority": "source-snapshot"
        },
        {
          "id": "motion",
          "label": "Motion",
          "value": "sample motion",
          "authority": "source-snapshot"
        }
      ]
    },
    "destinationShape": {
      "id": "user.theme_options",
      "sampleId": "user.theme_options.template",
      "variables": [
        {
          "id": "selected_theme",
          "label": "Selected Theme",
          "proposedValue": "proposed selected theme",
          "authority": "proposed-output"
        },
        {
          "id": "selected_density",
          "label": "Selected Density",
          "proposedValue": "proposed selected density",
          "authority": "proposed-output"
        },
        {
          "id": "reduced_motion",
          "label": "Reduced Motion",
          "proposedValue": "proposed reduced motion",
          "authority": "proposed-output"
        }
      ]
    },
    "controls": [
      {
        "id": "control-theme-options-to-user-preferences-primary",
        "label": "Review primary mapping",
        "type": "mapping-inspector",
        "edits": [
          "mapping.sources",
          "mapping.operation",
          "destination.proposedValue"
        ]
      },
      {
        "id": "control-theme-options-to-user-preferences-save",
        "label": "Save as new shape",
        "type": "action",
        "writes": "artifact-library"
      }
    ],
    "mappings": [
      {
        "id": "map-theme-options-to-user-preferences-selected-theme",
        "sources": [
          "default_theme"
        ],
        "destination": "selected_theme",
        "operation": "separate",
        "editable": true,
        "confidence": 0.86
      },
      {
        "id": "map-theme-options-to-user-preferences-selected-density",
        "sources": [
          "density"
        ],
        "destination": "selected_density",
        "operation": "separate",
        "editable": false,
        "confidence": 0.78
      },
      {
        "id": "map-theme-options-to-user-preferences-reduced-motion",
        "sources": [
          "contrast"
        ],
        "destination": "reduced_motion",
        "operation": "separate",
        "editable": false,
        "confidence": 0.78
      }
    ],
    "preview": {
      "source": {
        "default_theme": "sample default_theme",
        "density": "sample density",
        "contrast": "sample contrast",
        "motion": "sample motion"
      },
      "proposed": {
        "selected_theme": "proposed selected_theme",
        "selected_density": "proposed selected_density",
        "reduced_motion": "proposed reduced_motion"
      },
      "destination": "user.theme_options"
    },
    "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": "theme.global_settings",
      "destinationShape": "user.theme_options"
    },
    "runEvidence": {
      "status": "sample-passed",
      "assertions": [
        "all-required-destination-values-populated",
        "mapping-confidence-recorded",
        "export-contains-workflow-policy-snapshot-and-evidence"
      ]
    }
  }
}
