{
  "schemaVersion": 1,
  "frozenAt": "2026-10-02T20:55:21.834508+00:00",
  "product": "Photopea",
  "productId": "product:photopea",
  "status": "frozen_candidate_before_product_inference_authorization_pending",
  "authorization": {
    "termsAccepted": false,
    "imageUploadApproved": false,
    "nativeAiCallApproved": false,
    "requirement": "Root must establish current explicit authorization before terms acceptance, image upload and native AI use. Read-only page/source inspection has no newly introduced permission gate. This file is preparation only and does not itself authorize the interactive pilot."
  },
  "scope": "New finite Photopea native UI Remove BG pilot using only exact existing synthetic input/reference bytes. It neither reruns Rembg nor compares against or reads Rembg output/metrics. No natural-photo quality, model identity, broad marketing suitability, autonomy, cloud privacy or benchmark ranking is established.",
  "fixtureOrigin": {
    "originalProduct": "Rembg",
    "originalContractPath": "public/evidence/rembg-native-2026-10-02/frozen-cases.json",
    "originalContractSha256": "5569d699440ca57decb275abfe9353842bc564947b5bb153359ccd8c3ca63522",
    "inputAndReferenceBytesCopiedUnchanged": true,
    "newDrawingOrImageEditing": false,
    "priorOutputOrMetricsUsed": false
  },
  "nativeWorkflow": {
    "officialEntry": "https://www.photopea.com/",
    "commands": [
      "File > Open",
      "Select > Remove BG",
      "File > Export As > PNG",
      "Save"
    ],
    "maximumRemoveBgInvocationsPerCase": 1,
    "sameSessionForBothCases": true,
    "modelOrBuildIdentity": "Record only what the native UI actually discloses; unknown if not shown. No engine/model substitution.",
    "freeAccess": "Do not pay or upgrade. Any current account/terms/ad/credit gate is preserved and reviewed by Root before advancing. Docs do not prove current no-gate operation.",
    "asynchronousObservation": "A timeout is a pending observation, not proof that work is terminal. Observe the same confirmed UI operation; never restart removal because a wait expires.",
    "liveControlsVerified": false
  },
  "metricDefinitions": {
    "foregroundThreshold": 128,
    "silhouetteMinimumIoU": 0.9,
    "iou": "count(alpha>=128 AND reference==255)/count(alpha>=128 OR reference==255), over every original coordinate; nonzero denominator required.",
    "foregroundCoreThreshold": 245,
    "backgroundThreshold": 10,
    "visibleRgbMaxChannelDelta": 2,
    "visibleRgbMinimumMatchingFraction": 0.99,
    "referenceMasks": "Use exact unchanged pre-existing PNG masks. No recomputing dilation/erosion, post-output ROI adjustment, excluded edges, resizing, alignment or threshold tuning.",
    "colorGroupDenominator": "Pre-frozen source RGB palette at each existing foreground-core coordinate. Report per-group opaque coverage against all source-group pixels, then RGB fraction among actual alpha>=245 pixels. No hidden RGB in transparent pixels is required.",
    "pngAlpha": "Stored alpha band or PNG transparency chunk is required; converting opaque RGB to RGBA in the evaluator cannot create valid native transparency."
  },
  "assets": [
    {
      "originalPublicPath": "public/evidence/rembg-native-2026-10-02/primary-input.png",
      "candidatePath": "inputs/primary-input.png",
      "role": "product_input",
      "bytes": 2491,
      "sha256": "aa2a54b7a4398c6b4034d835288cbea9c5cba1e688391416c659923ae0f96a92",
      "width": 512,
      "height": 512,
      "mode": "RGB"
    },
    {
      "originalPublicPath": "public/evidence/rembg-native-2026-10-02/boundary-input.png",
      "candidatePath": "inputs/boundary-input.png",
      "role": "product_input",
      "bytes": 2342,
      "sha256": "07f11db8c2f6205c7d0bd53e687f21cab2723c010eca00e25c02a69064782f96",
      "width": 512,
      "height": 512,
      "mode": "RGB"
    },
    {
      "originalPublicPath": "public/evidence/rembg-native-2026-10-02/bottle-reference-mask.png",
      "candidatePath": "references/bottle-reference-mask.png",
      "role": "evaluator_only",
      "bytes": 956,
      "sha256": "eda3c5ed93ac4ad1713a2e8060ea3dcc638d4282bb8aa61bfe6e70c19bc50d06",
      "width": 512,
      "height": 512,
      "mode": "L"
    },
    {
      "originalPublicPath": "public/evidence/rembg-native-2026-10-02/bottle-core-mask.png",
      "candidatePath": "references/bottle-core-mask.png",
      "role": "evaluator_only",
      "bytes": 936,
      "sha256": "23d633889cb0498c9f750a738e365b365028f2fba0e25821f6cedc8231e1c464",
      "width": 512,
      "height": 512,
      "mode": "L"
    },
    {
      "originalPublicPath": "public/evidence/rembg-native-2026-10-02/bottle-background-mask.png",
      "candidatePath": "references/bottle-background-mask.png",
      "role": "evaluator_only",
      "bytes": 1293,
      "sha256": "2d0fbce5fd341a910c08ab16d7c1388e5f8a727797ec1e1b00a8dd82640b6a7f",
      "width": 512,
      "height": 512,
      "mode": "L"
    },
    {
      "originalPublicPath": "public/evidence/rembg-native-2026-10-02/mug-reference-mask.png",
      "candidatePath": "references/mug-reference-mask.png",
      "role": "evaluator_only",
      "bytes": 977,
      "sha256": "2973236777c2d43322f4c5779084ef024137cfbd19db04cf2fd7d32378e7cd7e",
      "width": 512,
      "height": 512,
      "mode": "L"
    },
    {
      "originalPublicPath": "public/evidence/rembg-native-2026-10-02/mug-body-core-mask.png",
      "candidatePath": "references/mug-body-core-mask.png",
      "role": "evaluator_only",
      "bytes": 754,
      "sha256": "c32e1cd5c7cc33e46c7d197fc88a0318d44dda7936a358956a1457e55ef12a0b",
      "width": 512,
      "height": 512,
      "mode": "L"
    },
    {
      "originalPublicPath": "public/evidence/rembg-native-2026-10-02/mug-handle-core-mask.png",
      "candidatePath": "references/mug-handle-core-mask.png",
      "role": "evaluator_only",
      "bytes": 657,
      "sha256": "38ff9d066b0d7512bd06d949db1eb6d8121a4f7b7a44b8546bde97fe8773f619",
      "width": 512,
      "height": 512,
      "mode": "L"
    },
    {
      "originalPublicPath": "public/evidence/rembg-native-2026-10-02/mug-hole-mask.png",
      "candidatePath": "references/mug-hole-mask.png",
      "role": "evaluator_only",
      "bytes": 506,
      "sha256": "aa029eb256e5fa4d19abfafb75b28c84c9b8cd5e01e2b893aa5ad06758c85af0",
      "width": 512,
      "height": 512,
      "mode": "L"
    },
    {
      "originalPublicPath": "public/evidence/rembg-native-2026-10-02/mug-background-mask.png",
      "candidatePath": "references/mug-background-mask.png",
      "role": "evaluator_only",
      "bytes": 1372,
      "sha256": "0736286d100f1635505a35d411bbc7aaa2ba1a7e59417a5a70053e941c0a5651",
      "width": 512,
      "height": 512,
      "mode": "L"
    }
  ],
  "cases": [
    {
      "id": "photopea-primary",
      "title": "First native Remove BG bottle cutout and original label/cap preservation",
      "input": "One existing authorized synthetic 512x512 RGB bottle image: teal body, black cap, cream label with three dark marks, light-gray background. This is a finite geometric fixture, not a natural product photograph. Independent full/core/background reference masks remain evaluator-only.",
      "inputPath": "inputs/primary-input.png",
      "instruction": "Open only the frozen bottle input in official Photopea. Apply Select > Remove BG once, then export the first unedited result as PNG at original 512x512. Preserve the complete bottle, cap, cream label and three dark label marks; remove the surrounding background to real alpha transparency. Do not draw or supply a mask, move/resize the subject, repair pixels, add a new background or retry removal.",
      "steps": [
        "Before opening the product, record authorization and verify this complete frozen contract, all input/reference hashes and the measurement-script hash. Keep reference masks and previous product outputs outside all product uploads.",
        "In the actual official Photopea browser UI, record visible version/build information or mark it unknown. Use File > Open to load only the fixed RGB input, inspect the canvas and source layer, and retain a pre-action screenshot.",
        "Invoke the documented Select > Remove BG command once for this fresh source document. Retain actual UI notices, gate/error/completion state and action time. Do not upload references, select a replacement engine, use manual selection/brush/magic-wand/refine-edge, patch pixels, replace the input or retry removal to improve the outcome.",
        "From the unchanged result document use File > Export As > PNG > Save. Keep 512x512, original canvas/position and default unmodified cutout. Save the first native downloaded bytes at the fixed result path; record native export settings, before/after screenshots, download identity/hash and any failure. A preview/checkerboard screenshot is not a transparent-PNG artifact.",
        "Keep the exported bytes immutable. Measure against the pre-existing reference masks with the frozen script; report each region and each source-color group separately. Do not resize, align, re-encode or repair the output for scoring. Native workflow/provenance is checked separately from pixels."
      ],
      "references": {
        "full": "references/bottle-reference-mask.png"
      },
      "regionChecks": [
        {
          "id": "bottle-core",
          "maskPath": "references/bottle-core-mask.png",
          "kind": "foreground",
          "pixelCount": 48769,
          "alphaThreshold": 245,
          "minimumFraction": 0.95,
          "sourceColorGroups": [
            {
              "rgb": [
                0,
                112,
                123
              ],
              "pixelCount": 34890
            },
            {
              "rgb": [
                24,
                28,
                32
              ],
              "pixelCount": 2656
            },
            {
              "rgb": [
                32,
                40,
                43
              ],
              "pixelCount": 1757
            },
            {
              "rgb": [
                248,
                246,
                235
              ],
              "pixelCount": 9466
            }
          ]
        },
        {
          "id": "exterior-background",
          "maskPath": "references/bottle-background-mask.png",
          "kind": "background",
          "pixelCount": 205299,
          "alphaThreshold": 10,
          "minimumFraction": 0.95
        }
      ],
      "nativeExport": {
        "retainedPath": "results/photopea-primary/first-native-export.png",
        "requestedFormat": "PNG",
        "width": 512,
        "height": 512
      },
      "expected": "A real first native transparent-PNG export with complete original subject and detail colors, unchanged source input/canvas and all six fixed checks satisfied. Actual failures and unknowns remain visible.",
      "passConditions": [
        "The exact original input hash is unchanged, only that RGB image was supplied to the actual official native UI, and the retained evidence proves one first Select > Remove BG result followed by its unedited PNG export. No reference mask, previous product output, manual repair or unrelated external action was supplied/performed.",
        "The actual first downloaded native artifact is decodable PNG, exactly 512x512, with a stored alpha channel or PNG transparency data; decoded alpha has minimum <=10 and maximum >=245. Checkerboard visibility alone does not pass.",
        "Using all 262144 pixels without alignment, cropped exclusions or ignored edges, alpha>=128 foreground has IoU>=0.90 against the full frozen bottle reference mask.",
        "At least 95% of all frozen bottle-core pixels retain alpha>=245.",
        "At least 95% of the frozen exterior-background pixels have alpha<=10.",
        "In every pre-frozen source-RGB group within each foreground reference core, alpha>=245 coverage meets that region's fixed minimum fraction (95% bottle/body, 90% mug handle). Of those retained opaque pixels, at least 99% differ from the source RGB by at most 2 in every channel. All per-group numerators and denominators are reported; zero opaque pixels cannot pass. Transparent-pixel hidden RGB outside these cores is not scored."
      ],
      "failureConditions": [
        "The source, reference masks, thresholds or measurement code change after the first product call; the operator tunes or supplies a mask, repairs output, uses another engine/product, retries removal for quality, or substitutes an old output. This makes the run nonconforming, not passed.",
        "The first native result or export fails a fixed dimension/alpha/IoU/region/color condition. Preserve the actual artifact/error and individual failed checks; an overall average cannot hide a region failure.",
        "Missing native output, pending service work, unverified UI provenance or uncertain authorization remains explicitly unexecuted/incomplete/unverified. Do not invent an image, success claim or pass score."
      ],
      "executionStatus": "not_executed",
      "outcome": null
    },
    {
      "id": "photopea-boundary",
      "title": "Low-contrast mug, narrow handle and real hole boundary",
      "input": "The unchanged distinct synthetic 512x512 RGB near-white mug on light-gray background, with a narrow handle, real background-colored handle hole and dark body stripe. The full/body/handle/hole/exterior masks existed before any Photopea call and remain evaluator-only.",
      "inputPath": "inputs/boundary-input.png",
      "instruction": "Open only the frozen mug image as a fresh document in the same official Photopea session. Apply the same default Select > Remove BG command once and export the first unedited PNG at original 512x512. Retain the body, stripe and thin handle, remove background visible through the handle hole as well as outside the mug. Do not redraw the handle, fill the hole, alter contrast, supply masks, repair pixels, add a background or retry removal.",
      "steps": [
        "Before opening the product, record authorization and verify this complete frozen contract, all input/reference hashes and the measurement-script hash. Keep reference masks and previous product outputs outside all product uploads.",
        "In the actual official Photopea browser UI, record visible version/build information or mark it unknown. Use File > Open to load only the fixed RGB input, inspect the canvas and source layer, and retain a pre-action screenshot.",
        "Invoke the documented Select > Remove BG command once for this fresh source document. Retain actual UI notices, gate/error/completion state and action time. Do not upload references, select a replacement engine, use manual selection/brush/magic-wand/refine-edge, patch pixels, replace the input or retry removal to improve the outcome.",
        "From the unchanged result document use File > Export As > PNG > Save. Keep 512x512, original canvas/position and default unmodified cutout. Save the first native downloaded bytes at the fixed result path; record native export settings, before/after screenshots, download identity/hash and any failure. A preview/checkerboard screenshot is not a transparent-PNG artifact.",
        "Keep the exported bytes immutable. Measure against the pre-existing reference masks with the frozen script; report each region and each source-color group separately. Do not resize, align, re-encode or repair the output for scoring. Native workflow/provenance is checked separately from pixels."
      ],
      "references": {
        "full": "references/mug-reference-mask.png"
      },
      "regionChecks": [
        {
          "id": "mug-body-core",
          "maskPath": "references/mug-body-core-mask.png",
          "kind": "foreground",
          "pixelCount": 35221,
          "alphaThreshold": 245,
          "minimumFraction": 0.95,
          "sourceColorGroups": [
            {
              "rgb": [
                65,
                67,
                69
              ],
              "pixelCount": 1708
            },
            {
              "rgb": [
                244,
                244,
                240
              ],
              "pixelCount": 33513
            }
          ]
        },
        {
          "id": "mug-handle-core",
          "maskPath": "references/mug-handle-core-mask.png",
          "kind": "foreground",
          "pixelCount": 4069,
          "alphaThreshold": 245,
          "minimumFraction": 0.9,
          "sourceColorGroups": [
            {
              "rgb": [
                244,
                244,
                240
              ],
              "pixelCount": 4069
            }
          ]
        },
        {
          "id": "handle-hole",
          "maskPath": "references/mug-hole-mask.png",
          "kind": "background",
          "pixelCount": 3100,
          "alphaThreshold": 10,
          "minimumFraction": 0.95
        },
        {
          "id": "exterior-background",
          "maskPath": "references/mug-background-mask.png",
          "kind": "background",
          "pixelCount": 213601,
          "alphaThreshold": 10,
          "minimumFraction": 0.95
        }
      ],
      "nativeExport": {
        "retainedPath": "results/photopea-boundary/first-native-export.png",
        "requestedFormat": "PNG",
        "width": 512,
        "height": 512
      },
      "expected": "A genuine unedited first native PNG with real hole/exterior transparency, preserved low-contrast mug/body stripe/narrow handle and all six fixed checks satisfied; lost handle or opaque hole remains a separately reported failure.",
      "passConditions": [
        "The exact original input hash is unchanged, only that RGB image was supplied to the actual official native UI, and the retained evidence proves one first Select > Remove BG result followed by its unedited PNG export. No reference mask, previous product output, manual repair or unrelated external action was supplied/performed.",
        "The actual first downloaded native artifact is decodable PNG, exactly 512x512, with a stored alpha channel or PNG transparency data; decoded alpha has minimum <=10 and maximum >=245. Checkerboard visibility alone does not pass.",
        "Using every image pixel, alpha>=128 foreground has IoU>=0.90 against the full frozen mug reference including its handle and actual hole.",
        "At least 95% of mug-body-core and at least 90% of mug-handle-core have alpha>=245; both regional fractions are separately reported.",
        "At least 95% of the inset handle-hole and at least 95% of exterior-background have alpha<=10; both regional fractions are separately reported.",
        "In every pre-frozen source-RGB group within each foreground reference core, alpha>=245 coverage meets that region's fixed minimum fraction (95% bottle/body, 90% mug handle). Of those retained opaque pixels, at least 99% differ from the source RGB by at most 2 in every channel. All per-group numerators and denominators are reported; zero opaque pixels cannot pass. Transparent-pixel hidden RGB outside these cores is not scored."
      ],
      "failureConditions": [
        "The source, reference masks, thresholds or measurement code change after the first product call; the operator tunes or supplies a mask, repairs output, uses another engine/product, retries removal for quality, or substitutes an old output. This makes the run nonconforming, not passed.",
        "The first native result or export fails a fixed dimension/alpha/IoU/region/color condition. Preserve the actual artifact/error and individual failed checks; an overall average cannot hide a region failure.",
        "Missing native output, pending service work, unverified UI provenance or uncertain authorization remains explicitly unexecuted/incomplete/unverified. Do not invent an image, success claim or pass score."
      ],
      "executionStatus": "not_executed",
      "outcome": null
    }
  ],
  "measurementScript": {
    "path": "measure-future-export-v2.py",
    "sha256": "1ea63368b4d644f51365750d960efda988d53ea9825b7999395edd9c412d905f",
    "executed": false,
    "productOutputEvaluated": false
  },
  "officialUiSourceNotes": {
    "documentedSingleClickDate": "2024-08-19",
    "singleClickRetainedText": "outputs/research/practical-next-2026-10-03/photopea-single-click.txt",
    "singleClickRetainedTextSha256": "ec0393c0dec71fde27b91a41f1b9a75d4d2e7694c82c831bf4eecef2bf534b0e",
    "olderManualGuideRetainedText": "outputs/research/practical-next-2026-10-03/photopea-bg-tutorial.txt",
    "olderManualGuideRetainedTextSha256": "2c72a53fc3fd51ee1c2cd7391b8ca6ce9821f283aaa0d527907f1b742b68ceb8",
    "manualGuideUse": "PNG supports transparency; manual magic-wand/delete route is explicitly excluded from the native AI pilot.",
    "badSmartToolsUrl": "photopea-smart-tools.txt says Such page does not exist and is not used as an AI Remove BG source.",
    "retainedReceiptMatches": [
      {
        "id": "photopea-bg-tutorial",
        "url": "https://www.photopea.com/tuts/remove-background-from-photo/",
        "retrievedAt": "2026-10-02T20:48:56.079150+00:00",
        "method": "GET",
        "purpose": "limited public official-source research, no product request",
        "status": 200,
        "finalUrl": "https://www.photopea.com/tuts/remove-background-from-photo/",
        "contentType": "text/html; charset=UTF-8",
        "bytes": 6485,
        "sha256": "d741fb24294c2d7be09712a001c0d9c79153356e12f28f5116ecb90331312946"
      },
      {
        "id": "photopea-single-click",
        "url": "https://www.photopea.com/tuts/single-click-background-removal/",
        "retrievedAt": "2026-10-02T20:49:24.491336+00:00",
        "method": "GET",
        "purpose": "limited public official-source research, no product request",
        "status": 200,
        "finalUrl": "https://www.photopea.com/tuts/single-click-background-removal/",
        "contentType": "text/html; charset=UTF-8",
        "bytes": 4073,
        "sha256": "17dd10087bdb0a5d75c0dd6581e645d2af9d10cc6826a643215ab5a54827f677"
      }
    ]
  },
  "actualProductCalls": 0,
  "actualNativeExports": 0,
  "pixelScoresAssigned": 0,
  "previousVersion": {
    "path": "frozen-photopea-contract-v1.json",
    "sha256": "d6e83826d7eaa78a66b5b8d493b204353a0836e824ce063e7a844fa65ba98264",
    "reason": "Narrow the authorization prose to terms acceptance/upload/AI. No case, threshold, asset or numeric measurement changed; no product call occurred."
  }
}
