{
  "id": "starter-metrics",
  "name": "Switch Starter metrics status tabs",
  "start": { "path": "/tidbs/{{starterClusterId}}/metrics" },
  "goal": [
    "On the verified {{clusterName}} Metrics page, wait for Instance Overview and its metrics to finish loading. Stay on this page; no sidebar navigation is needed.",
    "Switch to Database Status once and wait until QPS Per DB, Average Query Duration Per DB, and Failed Query Per DB are visible together. Only after observing all three, switch back to Instance Overview once and stop when its metrics are visible."
  ],
  "success": {
    "beforeEvidence": [
      { "kind": "visibleText", "text": "QPS Per DB", "exact": true },
      { "kind": "visibleText", "text": "Average Query Duration Per DB", "exact": true },
      { "kind": "visibleText", "text": "Failed Query Per DB", "exact": true }
    ],
    "evidence": [
      { "kind": "url", "matches": "/tidbs/[^/]+/metrics(?:[/?]|$)" },
      { "kind": "visibleText", "text": "Request Units" },
      { "kind": "visibleText", "text": "Query Per Second" },
      { "kind": "visibleText", "text": "Transaction Per Second" },
      { "kind": "visibleText", "text": "Total Connection" }
    ]
  },
  "recovery": [
    "Use action history to continue the current phase. Do not stop on the initial Instance Overview before observing all three Database Status metrics. After observing them and returning to Instance Overview, stop without another action; do not click metric cards or repeat the tab cycle."
  ],
  "limits": { "maxDurationMs": 120000, "maxActions": 8 }
}
