{
  "artifact": {
    "bytes": 9009,
    "format": "json",
    "mediaType": "application/json",
    "path": "samples/states/gitlab/merge-conflict/state.json",
    "sha256": "a4c80d73ac15620c31a9cf5efb7902f2971d5b5f7687dd13c9f2b6041f17ff08"
  },
  "capabilities": {
    "limitations": [
      "Historical demo fixture contains a duplicate branch id; public derivatives remove only later duplicates."
    ],
    "required": [
      "state.read",
      "state.load",
      "state.reset",
      "rest.projects"
    ],
    "supportedSurface": "Stateful projects, issues, merge requests, notes, labels, branches, and pipelines."
  },
  "category": "edge-case",
  "displayName": "GitLab merge conflict",
  "entityCounts": {
    "collections": {
      "applications": 0,
      "branches": 2,
      "clusterAgents": 0,
      "clusterAgentTokens": 0,
      "clusterAgentUrlConfigurations": 0,
      "commits": 2,
      "commitStatuses": 0,
      "deployKeys": 0,
      "environments": 0,
      "featureFlags": 0,
      "featureFlagUserLists": 0,
      "groupAccessTokens": 0,
      "issueNotes": 0,
      "issues": 0,
      "jobTokenAllowlistGroups": 0,
      "jobTokenAllowlistProjects": 0,
      "labels": 0,
      "mergeRequestNotes": 0,
      "mergeRequests": 1,
      "milestones": 0,
      "packageFiles": 0,
      "packageProtectionRules": 0,
      "packages": 0,
      "pipelineJobs": 0,
      "pipelines": 0,
      "projectAccessTokens": 0,
      "projectMembers": 0,
      "projects": 1,
      "projectVariables": 0,
      "releases": 0,
      "repoFiles": 2,
      "snippets": 0,
      "tags": 0,
      "webhooks": 0
    },
    "total": 8
  },
  "environmentId": "gitlab",
  "expectedDiff": {
    "changedPathsInclude": [
      "mergeRequestNotes"
    ],
    "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": "getMergeRequest",
    "path": "/api/v4/projects/82857419/merge_requests/3",
    "transport": "provider-rest"
  },
  "id": "gitlab.merge-conflict.v1",
  "provenance": {
    "authoredBy": "archal",
    "kind": "authored",
    "sanitizationNotes": [
      "Reviewed by the v1 value scanner; no credential-shaped values required replacement."
    ],
    "sourcePath": "clones/gitlab/seeds/demo.json",
    "sourceSha256": "81240378a5e291249411706bd47b93aa58b4035202a5251a06fa1b791a94c5eb",
    "transformationNotes": [
      "Constructed by the exact reviewed profile gitlab.merge-conflict.",
      "Selected and amended records from the pinned clones/gitlab/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": "Represent an open merge request whose source and target modify the same retained repository file.",
  "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": {
      "body": "The conflict is still reproducible. Rebase on the retained target branch and rerun provider-contract tests."
    },
    "expectedStatus": [
      201
    ],
    "method": "POST",
    "operationId": "createMergeRequestNote",
    "path": "/api/v4/projects/82857419/merge_requests/3/notes",
    "transport": "provider-rest"
  },
  "schema": "archal.environment-sample",
  "schemaVersion": 1,
  "slug": "merge-conflict",
  "stateContract": {
    "format": "json",
    "schema": "archal.environment-state.gitlab",
    "version": 1
  }
}
