{
  "scenario": "Cleanup removes a clean detached worktree whose commit remains on main",
  "failsOnBase": true,
  "passesOnHead": true,
  "couldNotRun": null,
  "baseSha": "3c08684f1deb7aa19e2a6440161d2e600ae215f8",
  "headSha": "2af9f2267676b275e40978baddfb649f4b1d2753",
  "verdict": "Proven: the scenario fails on base `3c08684f1d` and passes on head `2af9f22676`.",
  "steps": {
    "base": [
      {
        "step": "app.open <pairing link>",
        "status": "passed"
      },
      {
        "step": "expect.not.toHaveURL /\\/pair(?:[?#]|$)/",
        "status": "passed"
      },
      {
        "step": "app.open /settings/worktrees",
        "status": "passed"
      },
      {
        "step": "locator.tap locator(\"#storage-worktrees\") >> getByRole(\"button\", name: \"Advanced\")",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"switch\", name: \"Delete unchanged worktrees\")",
        "status": "passed"
      },
      {
        "step": "app.open <pairing link>",
        "status": "passed"
      },
      {
        "step": "expect.not.toHaveURL /\\/pair(?:[?#]|$)/",
        "status": "passed"
      },
      {
        "step": "app.open /settings/maintenance",
        "status": "passed"
      },
      {
        "step": "browser.evaluate ",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: \"Delete now\")",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByRole(\"button\", name: \"Delete now\") \u2192 visible",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: /^Last run/)",
        "status": "passed"
      },
      {
        "step": "locator.waitFor locator(\"#storage-cleanup-last-run\") \u2192 visible",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByText(/Repository or branch changed|No commits beyond the default branch/) \u2192 visible",
        "status": "passed"
      },
      {
        "step": "locator.scrollIntoView locator(\"#storage-cleanup-last-run\")",
        "status": "passed"
      },
      {
        "step": "app.screenshot detached-worktree-cleanup-result",
        "status": "passed"
      },
      {
        "step": "expect.toContainText locator(\"#storage-cleanup-last-run\")",
        "status": "failed"
      }
    ],
    "head": [
      {
        "step": "app.open <pairing link>",
        "status": "passed"
      },
      {
        "step": "expect.not.toHaveURL /\\/pair(?:[?#]|$)/",
        "status": "passed"
      },
      {
        "step": "app.open /settings/worktrees",
        "status": "passed"
      },
      {
        "step": "locator.tap locator(\"#storage-worktrees\") >> getByRole(\"button\", name: \"Advanced\")",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"switch\", name: \"Delete unchanged worktrees\")",
        "status": "passed"
      },
      {
        "step": "app.open <pairing link>",
        "status": "passed"
      },
      {
        "step": "expect.not.toHaveURL /\\/pair(?:[?#]|$)/",
        "status": "passed"
      },
      {
        "step": "app.open /settings/maintenance",
        "status": "passed"
      },
      {
        "step": "browser.evaluate ",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: \"Delete now\")",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByRole(\"button\", name: \"Delete now\") \u2192 visible",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: /^Last run/)",
        "status": "passed"
      },
      {
        "step": "locator.waitFor locator(\"#storage-cleanup-last-run\") \u2192 visible",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByText(/Repository or branch changed|No commits beyond the default branch/) \u2192 visible",
        "status": "passed"
      },
      {
        "step": "locator.scrollIntoView locator(\"#storage-cleanup-last-run\")",
        "status": "passed"
      },
      {
        "step": "app.screenshot detached-worktree-cleanup-result",
        "status": "passed"
      },
      {
        "step": "expect.toContainText locator(\"#storage-cleanup-last-run\")",
        "status": "passed"
      }
    ]
  },
  "markdown": "### Scenario: Cleanup removes a clean detached worktree whose commit remains on main\n\n**Proven: the scenario fails on base `3c08684f1d` and passes on head `2af9f22676`.**\n\n|  | Base `3c08684f1d` | Head `2af9f22676` |\n| --- | --- | --- |\n| Result | \u274c failed<br>ASSERTION_FAILED: expect.toContainText failed<br>locator: locator(\"#storage-cleanup-last-run\")<br>expected: text containing \"No commits beyond the default branch\"<br>observed: text \"Last run 0 removed, 1 kept cleanup-demo-d12d4d15172f0a7b Repository or branch changed Machine Scenario Project Folder Thread Clean detached worktree\" (match count 1) | \u2705 passed |\n| detached worktree cleanup result | ![Base 3c08684f1d: detached worktree cleanup result](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/0bb02cdfc3c50e76/001-detached-worktree-cleanup-result.png) | ![Head 2af9f22676: detached worktree cleanup result](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/4470116a55beff3d/001-detached-worktree-cleanup-result.png) |\n| failure | ![Base 3c08684f1d: failure](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/30d457aad716a30a/002-failure.png) |  |\n",
  "base": {
    "sha": "3c08684f1deb7aa19e2a6440161d2e600ae215f8",
    "status": "failed",
    "title": "Cleanup removes a clean detached worktree whose commit remains on main",
    "message": "ASSERTION_FAILED: expect.toContainText failed\nlocator: locator(\"#storage-cleanup-last-run\")\nexpected: text containing \"No commits beyond the default branch\"\nobserved: text \"Last run 0 removed, 1 kept cleanup-demo-d12d4d15172f0a7b Repository or branch changed Machine Scenario Project Folder Thread Clean detached worktree\" (match count 1)",
    "steps": [
      {
        "step": "app.open <pairing link>",
        "status": "passed"
      },
      {
        "step": "expect.not.toHaveURL /\\/pair(?:[?#]|$)/",
        "status": "passed"
      },
      {
        "step": "app.open /settings/worktrees",
        "status": "passed"
      },
      {
        "step": "locator.tap locator(\"#storage-worktrees\") >> getByRole(\"button\", name: \"Advanced\")",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"switch\", name: \"Delete unchanged worktrees\")",
        "status": "passed"
      },
      {
        "step": "app.open <pairing link>",
        "status": "passed"
      },
      {
        "step": "expect.not.toHaveURL /\\/pair(?:[?#]|$)/",
        "status": "passed"
      },
      {
        "step": "app.open /settings/maintenance",
        "status": "passed"
      },
      {
        "step": "browser.evaluate ",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: \"Delete now\")",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByRole(\"button\", name: \"Delete now\") \u2192 visible",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: /^Last run/)",
        "status": "passed"
      },
      {
        "step": "locator.waitFor locator(\"#storage-cleanup-last-run\") \u2192 visible",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByText(/Repository or branch changed|No commits beyond the default branch/) \u2192 visible",
        "status": "passed"
      },
      {
        "step": "locator.scrollIntoView locator(\"#storage-cleanup-last-run\")",
        "status": "passed"
      },
      {
        "step": "app.screenshot detached-worktree-cleanup-result",
        "status": "passed"
      },
      {
        "step": "expect.toContainText locator(\"#storage-cleanup-last-run\")",
        "status": "failed"
      }
    ]
  },
  "head": {
    "sha": "2af9f2267676b275e40978baddfb649f4b1d2753",
    "status": "passed",
    "title": "Cleanup removes a clean detached worktree whose commit remains on main",
    "steps": [
      {
        "step": "app.open <pairing link>",
        "status": "passed"
      },
      {
        "step": "expect.not.toHaveURL /\\/pair(?:[?#]|$)/",
        "status": "passed"
      },
      {
        "step": "app.open /settings/worktrees",
        "status": "passed"
      },
      {
        "step": "locator.tap locator(\"#storage-worktrees\") >> getByRole(\"button\", name: \"Advanced\")",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"switch\", name: \"Delete unchanged worktrees\")",
        "status": "passed"
      },
      {
        "step": "app.open <pairing link>",
        "status": "passed"
      },
      {
        "step": "expect.not.toHaveURL /\\/pair(?:[?#]|$)/",
        "status": "passed"
      },
      {
        "step": "app.open /settings/maintenance",
        "status": "passed"
      },
      {
        "step": "browser.evaluate ",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: \"Delete now\")",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByRole(\"button\", name: \"Delete now\") \u2192 visible",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: /^Last run/)",
        "status": "passed"
      },
      {
        "step": "locator.waitFor locator(\"#storage-cleanup-last-run\") \u2192 visible",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByText(/Repository or branch changed|No commits beyond the default branch/) \u2192 visible",
        "status": "passed"
      },
      {
        "step": "locator.scrollIntoView locator(\"#storage-cleanup-last-run\")",
        "status": "passed"
      },
      {
        "step": "app.screenshot detached-worktree-cleanup-result",
        "status": "passed"
      },
      {
        "step": "expect.toContainText locator(\"#storage-cleanup-last-run\")",
        "status": "passed"
      }
    ]
  }
}