{
  "artifact": {
    "bytes": 9638,
    "format": "json",
    "mediaType": "application/json",
    "path": "samples/states/calcom/booking-lifecycle/state.json",
    "sha256": "f364e68d1c81c1a773e5b0cfa32a6b380f936a81d8ba70a04266dff3327e438f"
  },
  "capabilities": {
    "limitations": [
      "Time-zone and organization-admin behavior require operation-specific verification."
    ],
    "required": [
      "state.read",
      "state.load",
      "state.reset",
      "rest.bookings"
    ],
    "supportedSurface": "Stateful users, event types, schedules, availability, and booking workflows."
  },
  "category": "workflow",
  "displayName": "Cal.com booking lifecycle",
  "entityCounts": {
    "collections": {
      "bookings": 1,
      "calendars": 0,
      "eventTypes": 1,
      "outOfOfficeEntries": 0,
      "reservedSlots": 1,
      "schedules": 1,
      "teamMemberships": 0,
      "teams": 0,
      "users": 1,
      "webhooks": 0
    },
    "total": 5
  },
  "environmentId": "calcom",
  "expectedDiff": {
    "changedPathsInclude": [
      "bookings"
    ],
    "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": "listEventTypes",
    "path": "/v2/event-types",
    "transport": "provider-rest"
  },
  "id": "calcom.booking-lifecycle.v1",
  "provenance": {
    "authoredBy": "archal",
    "kind": "authored",
    "sanitizationNotes": [
      "Replaced 8 credential-shaped or non-example email value(s).",
      "Replacement paths: bookings.0.payload.attendees.0.displayEmail (email-domain), bookings.0.payload.attendees.0.email (email-domain), bookings.0.payload.bookingFieldsResponses.displayEmail (email-domain), bookings.0.payload.bookingFieldsResponses.email (email-domain), bookings.0.payload.hosts.0.displayEmail (email-domain), bookings.0.payload.hosts.0.email (email-domain), bookings.0.payload.icsUid (email-domain), users.0.payload.email (email-domain)"
    ],
    "sourcePath": "clones/calcom/seeds/demo.json",
    "sourceSha256": "4129ba15f96c3e118046f77f2ed7d1f62a6e295d3bb545d21a7b80912b12ae84",
    "transformationNotes": [
      "Constructed by the exact reviewed profile calcom.booking-lifecycle.",
      "Selected and amended records from the pinned clones/calcom/seeds/demo.json fixture without changing that historical source.",
      "Validated against the scenario proof, first-read prerequisites, mutation prerequisites, and declared relationship closure.",
      "Canonicalized object-key ordering for byte-stable public output."
    ]
  },
  "purpose": "Start from one retained booking and reserved slot, create a second booking against the same event type, and verify reset.",
  "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-loaded-sample",
      "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": {
      "attendee": {
        "email": "maya.chen@example.test",
        "name": "Maya Chen",
        "timeZone": "America/Los_Angeles"
      },
      "eventTypeId": 5898555,
      "start": "2027-01-15T18:00:00.000Z"
    },
    "expectedStatus": [
      200,
      201,
      204
    ],
    "method": "POST",
    "operationId": "createBooking",
    "path": "/v2/bookings",
    "transport": "provider-rest"
  },
  "schema": "archal.environment-sample",
  "schemaVersion": 1,
  "slug": "booking-lifecycle",
  "stateContract": {
    "format": "json",
    "schema": "archal.environment-state.calcom",
    "version": 1
  }
}
