{
  "portaShape": {
    "formatVersion": "0.1",
    "kind": "mvp-example",
    "id": "example.user-preferences-to-app-settings",
    "name": "User preferences to app settings",
    "mvpStatus": "complete",
    "summary": "MVP playground fixture for transforming user.theme_options into app.settings_patch.",
    "sourceShape": {
      "id": "user.theme_options",
      "sampleId": "user.theme_options.sample",
      "variables": [
        {
          "id": "selected_theme",
          "label": "Selected Theme",
          "value": "sample selected theme",
          "authority": "source-snapshot"
        },
        {
          "id": "selected_density",
          "label": "Selected Density",
          "value": "sample selected density",
          "authority": "source-snapshot"
        },
        {
          "id": "reduced_motion",
          "label": "Reduced Motion",
          "value": "sample reduced motion",
          "authority": "source-snapshot"
        }
      ]
    },
    "destinationShape": {
      "id": "app.settings_patch",
      "sampleId": "app.settings_patch.template",
      "variables": [
        {
          "id": "proposed_defaults",
          "label": "Proposed Defaults",
          "proposedValue": "proposed proposed defaults",
          "authority": "proposed-output"
        },
        {
          "id": "approval_required",
          "label": "Approval Required",
          "proposedValue": "proposed approval required",
          "authority": "proposed-output"
        },
        {
          "id": "policy_warnings",
          "label": "Policy Warnings",
          "proposedValue": "proposed policy warnings",
          "authority": "proposed-output"
        }
      ]
    },
    "controls": [
      {
        "id": "control-user-preferences-to-app-settings-primary",
        "label": "Review primary mapping",
        "type": "mapping-inspector",
        "edits": [
          "mapping.sources",
          "mapping.operation",
          "destination.proposedValue"
        ]
      },
      {
        "id": "control-user-preferences-to-app-settings-save",
        "label": "Save as new shape",
        "type": "action",
        "writes": "artifact-library"
      }
    ],
    "mappings": [
      {
        "id": "map-user-preferences-to-app-settings-proposed-defaults",
        "sources": [
          "selected_theme"
        ],
        "destination": "proposed_defaults",
        "operation": "promote",
        "editable": true,
        "confidence": 0.86
      },
      {
        "id": "map-user-preferences-to-app-settings-approval-required",
        "sources": [
          "selected_density"
        ],
        "destination": "approval_required",
        "operation": "promote",
        "editable": false,
        "confidence": 0.78
      },
      {
        "id": "map-user-preferences-to-app-settings-policy-warnings",
        "sources": [
          "reduced_motion"
        ],
        "destination": "policy_warnings",
        "operation": "promote",
        "editable": false,
        "confidence": 0.78
      }
    ],
    "preview": {
      "source": {
        "selected_theme": "sample selected_theme",
        "selected_density": "sample selected_density",
        "reduced_motion": "sample reduced_motion"
      },
      "proposed": {
        "proposed_defaults": "proposed proposed_defaults",
        "approval_required": "proposed approval_required",
        "policy_warnings": "proposed policy_warnings"
      },
      "destination": "app.settings_patch"
    },
    "workflow": {
      "steps": [
        "import-source-shape",
        "inspect-variables",
        "map-values",
        "preview-transform",
        "validate-result",
        "save-as-new-shape",
        "export-posh-artifact"
      ]
    },
    "policy": {
      "requiresApproval": true,
      "checks": [
        "schema-valid",
        "authority-declared",
        "loss-reviewed",
        "provenance-recorded"
      ]
    },
    "snapshot": {
      "capturedAt": "2026-07-20T00:00:00Z",
      "sourceShape": "user.theme_options",
      "destinationShape": "app.settings_patch"
    },
    "runEvidence": {
      "status": "sample-passed",
      "assertions": [
        "all-required-destination-values-populated",
        "mapping-confidence-recorded",
        "export-contains-workflow-policy-snapshot-and-evidence"
      ]
    }
  }
}
