{
  "kind": "LOCAL_SYNTHETIC_CONTRACT_SIMULATION",
  "python": "3.12.14",
  "network_calls": 0,
  "drive_api_test": "NOT_RUN",
  "file_permission_test": "NOT_RUN",
  "cases_passed": 6,
  "model_outputs": 1,
  "cases": [
    {
      "case": "normal",
      "request": {
        "source_file_id": "SYN-F01",
        "source_version": "7",
        "source_drive_id": "SYN-SHARED-01",
        "source_sha256": "4083ab32d6c0a5048cc7370b8caf4173c5eb1e1aae46efb5f1342c4b58d47ccc",
        "mime_type": "application/pdf",
        "operation": "review-copy-v1",
        "destination_drive_id": "SYN-SHARED-01",
        "destination_folder_id": "SYN-FOLDER-09"
      },
      "current": {
        "version": "7",
        "sha256": "4083ab32d6c0a5048cc7370b8caf4173c5eb1e1aae46efb5f1342c4b58d47ccc",
        "access_allowed": true
      },
      "expected": "CREATED_MODEL_DERIVATIVE",
      "result": {
        "state": "CREATED_MODEL_DERIVATIVE",
        "job_key": "bf10338ca401acbd8f0ca86c0048e2a0c9357e5bc8e35b7145976fe75ccab9cc",
        "output": {
          "file_id": "SYN-DERIVATIVE-01",
          "source_file_id": "SYN-F01",
          "source_version": "7",
          "destination_drive_id": "SYN-SHARED-01",
          "document_bytes": "NOT_CREATED"
        }
      }
    },
    {
      "case": "duplicate_delivery",
      "request": {
        "source_file_id": "SYN-F01",
        "source_version": "7",
        "source_drive_id": "SYN-SHARED-01",
        "source_sha256": "4083ab32d6c0a5048cc7370b8caf4173c5eb1e1aae46efb5f1342c4b58d47ccc",
        "mime_type": "application/pdf",
        "operation": "review-copy-v1",
        "destination_drive_id": "SYN-SHARED-01",
        "destination_folder_id": "SYN-FOLDER-09"
      },
      "current": {
        "version": "7",
        "sha256": "4083ab32d6c0a5048cc7370b8caf4173c5eb1e1aae46efb5f1342c4b58d47ccc",
        "access_allowed": true
      },
      "expected": "REUSED_OUTPUT",
      "result": {
        "state": "REUSED_OUTPUT",
        "job_key": "bf10338ca401acbd8f0ca86c0048e2a0c9357e5bc8e35b7145976fe75ccab9cc",
        "output": {
          "file_id": "SYN-DERIVATIVE-01",
          "source_file_id": "SYN-F01",
          "source_version": "7",
          "destination_drive_id": "SYN-SHARED-01",
          "document_bytes": "NOT_CREATED"
        }
      }
    },
    {
      "case": "metadata_version_changed_same_bytes",
      "request": {
        "source_file_id": "SYN-F01",
        "source_version": "7",
        "source_drive_id": "SYN-SHARED-01",
        "source_sha256": "4083ab32d6c0a5048cc7370b8caf4173c5eb1e1aae46efb5f1342c4b58d47ccc",
        "mime_type": "application/pdf",
        "operation": "review-copy-v1",
        "destination_drive_id": "SYN-SHARED-01",
        "destination_folder_id": "SYN-FOLDER-09"
      },
      "current": {
        "version": "8",
        "sha256": "4083ab32d6c0a5048cc7370b8caf4173c5eb1e1aae46efb5f1342c4b58d47ccc",
        "access_allowed": true
      },
      "expected": "HELD_VERSION_CHANGED",
      "result": {
        "state": "HELD_VERSION_CHANGED",
        "same_bytes": true
      }
    },
    {
      "case": "wrong_destination_drive",
      "request": {
        "source_file_id": "SYN-F01",
        "source_version": "7",
        "source_drive_id": "SYN-SHARED-01",
        "source_sha256": "4083ab32d6c0a5048cc7370b8caf4173c5eb1e1aae46efb5f1342c4b58d47ccc",
        "mime_type": "application/pdf",
        "operation": "review-copy-v1",
        "destination_drive_id": "SYN-MY-DRIVE",
        "destination_folder_id": "SYN-FOLDER-09"
      },
      "current": {
        "version": "7",
        "sha256": "4083ab32d6c0a5048cc7370b8caf4173c5eb1e1aae46efb5f1342c4b58d47ccc",
        "access_allowed": true
      },
      "expected": "REJECTED_DESTINATION_DRIVE",
      "result": {
        "state": "REJECTED_DESTINATION_DRIVE"
      }
    },
    {
      "case": "access_revoked",
      "request": {
        "source_file_id": "SYN-F01",
        "source_version": "7",
        "source_drive_id": "SYN-SHARED-01",
        "source_sha256": "4083ab32d6c0a5048cc7370b8caf4173c5eb1e1aae46efb5f1342c4b58d47ccc",
        "mime_type": "application/pdf",
        "operation": "review-copy-v1",
        "destination_drive_id": "SYN-SHARED-01",
        "destination_folder_id": "SYN-FOLDER-09"
      },
      "current": {
        "version": "7",
        "sha256": "4083ab32d6c0a5048cc7370b8caf4173c5eb1e1aae46efb5f1342c4b58d47ccc",
        "access_allowed": false
      },
      "expected": "HELD_ACCESS",
      "result": {
        "state": "HELD_ACCESS"
      }
    },
    {
      "case": "workspace_document_requires_export",
      "request": {
        "source_file_id": "SYN-F01",
        "source_version": "7",
        "source_drive_id": "SYN-SHARED-01",
        "source_sha256": "4083ab32d6c0a5048cc7370b8caf4173c5eb1e1aae46efb5f1342c4b58d47ccc",
        "mime_type": "application/vnd.google-apps.document",
        "operation": "review-copy-v1",
        "destination_drive_id": "SYN-SHARED-01",
        "destination_folder_id": "SYN-FOLDER-09"
      },
      "current": {
        "version": "7",
        "sha256": "4083ab32d6c0a5048cc7370b8caf4173c5eb1e1aae46efb5f1342c4b58d47ccc",
        "access_allowed": true
      },
      "expected": "HELD_EXPORT_REQUIRED",
      "result": {
        "state": "HELD_EXPORT_REQUIRED"
      }
    }
  ],
  "limitations": [
    "No real Drive revisions, OAuth scopes, downloads or uploads exercised. Model content is a labelled byte placeholder."
  ]
}
