{
  "artifact": {
    "bytes": 6284,
    "format": "sql",
    "mediaType": "text/sql",
    "path": "samples/states/supabase/vaultline-cart-workflow/state.sql",
    "sha256": "e056f6da1feea484057300d5e3f6163b8d8b3e0f448c9d5c94508890627eb035"
  },
  "capabilities": {
    "limitations": [
      "SQL samples are bounded to the safe state-loader subset; hosted reset behavior requires explicit certification."
    ],
    "required": [
      "state.read",
      "state.load.sql",
      "state.reset",
      "rest.tables"
    ],
    "supportedSurface": "PostgreSQL schema and fixture states with REST data-plane reads and writes."
  },
  "category": "workflow",
  "displayName": "Supabase Vaultline cart workflow",
  "entityCounts": {
    "collections": {
      "cart_items": 5,
      "products": 7,
      "profiles": 6,
      "supabase_migrations.schema_migrations": 3
    },
    "total": 21
  },
  "environmentId": "supabase",
  "expectedDiff": {
    "changedPathsInclude": [
      "database.tables"
    ],
    "exact": false,
    "notes": "Hosted promotion must observe every listed path after the provider-native mutation; dynamic provider ids and timestamps are excluded from exact matching."
  },
  "expectedFirstRead": {
    "body": null,
    "expectedStatus": [
      200
    ],
    "method": "GET",
    "operationId": "readProfilesTable",
    "path": "/rest/v1/profiles?select=*",
    "transport": "provider-rest"
  },
  "id": "supabase.vaultline-cart-workflow.v1",
  "provenance": {
    "authoredBy": "archal",
    "kind": "derived-fixture",
    "sanitizationNotes": [
      "Replaced 3 credential-shaped or non-example email SQL literal(s)."
    ],
    "sourcePath": "clones/supabase/seeds/vaultline-ecommerce.sql",
    "sourceSha256": "0e481fd1977746581263063e4d56626f02ea070e8d9df27c1e3b77f235585b72",
    "transformationNotes": [
      "Normalized line endings and sanitized literals from the pinned SQL fixture.",
      "Retained the complete selected source fixture; no tables or rows were sliced."
    ]
  },
  "purpose": "Start from RLS-backed profiles, products, and cart items with a closed product foreign key, then insert and reset one profile row.",
  "qualification": {
    "candidate": {
      "basis": "catalog-admission",
      "status": "passed"
    },
    "certification": {
      "evidencePath": null,
      "lastHostedVerificationAt": null,
      "runtimeBundleDigest": null,
      "sourceCommit": null,
      "status": "unknown"
    },
    "isolation": {
      "lastVerifiedAt": null,
      "status": "unknown"
    },
    "reset": {
      "expected": "restores-original-session-seed",
      "lastVerifiedAt": null,
      "status": "unknown"
    },
    "validation": {
      "checks": [
        "artifact-hash",
        "historical-source-lock",
        "state-contract",
        "scenario-semantics",
        "relationship-closure",
        "secret-scan",
        "size-limit"
      ],
      "status": "passed",
      "validator": "archal.environment-samples.v1"
    }
  },
  "representativeMutation": {
    "body": {
      "display_name": "Maya Chen",
      "email": "maya.chen@example.test",
      "user_id": "10000000-0000-4000-8000-000000000099"
    },
    "expectedStatus": [
      200,
      201,
      204
    ],
    "method": "POST",
    "operationId": "insertRow",
    "path": "/rest/v1/profiles",
    "transport": "provider-rest"
  },
  "schema": "archal.environment-sample",
  "schemaVersion": 1,
  "slug": "vaultline-cart-workflow",
  "stateContract": {
    "format": "sql",
    "schema": "archal.environment-state.supabase",
    "version": 1
  }
}
