{
  "id": "sitebench--mai-code-2-flash--2026-11-18--v2",
  "modelSlug": "mai-code-2-flash",
  "modelName": "MAI Code 2 Flash",
  "provider": "Microsoft",
  "bench": "sitebench",
  "benchName": "Sitebench",
  "benchVersion": "v2",
  "rubricVersion": "sitebench@4",
  "promptVersion": "sitebench@2",
  "date": "2026-11-18",
  "overallGrade": "C-",
  "verdict": "fire",
  "verdictReason": "The app looks like a decent product and loads its seed data, but any new account can join the clinic and delete patients, so it cannot be handed to a real clinic",
  "verdictOverridden": false,
  "effort": "medium, the default",
  "tool": "GitHub Copilot CLI",
  "costUSD": 0.010760760000000001,
  "costEstimated": false,
  "url": "https://gruntbench.com/run/sitebench--mai-code-2-flash--2026-11-18--v2",
  "verdictExplanation": null,
  "promptTokens": 608929,
  "completionTokens": 14431,
  "reasoningTokens": 2144,
  "latencySeconds": 444,
  "tokensPerSecond": null,
  "firstTryWorks": true,
  "listPrice": {
    "inputPerM": 0.05,
    "outputPerM": 0.25
  },
  "fixPass": null,
  "scores": [
    {
      "label": "Design",
      "grade": "B-",
      "weight": 0.35,
      "evidence": "Looks like a real product, with clear hierarchy, readable labels, generous targets and a pleasant card system on desktop and mobile. Dark mode appears not to render, there is a font inconsistency on the count badge, a field is truncated, and the mobile list is a clipped horizontal strip with no visible search.",
      "subrows": null
    },
    {
      "label": "Works for the job",
      "grade": "C",
      "weight": 0.25,
      "evidence": "Seeded patient details and recent activity are present on desktop and mobile. Existing-member data operations work in the rules probes. New-account onboarding fails its transaction control, and the patient limit is unreliable. Mobile search is absent from the supplied view; navigation and end-to-end autosave remain unverified.",
      "subrows": null
    },
    {
      "label": "Security",
      "grade": "F",
      "weight": 0.15,
      "evidence": "Anonymous access and cross-clinic access are denied by the tested rules. Self-enrollment grants strangers access to clinic records without approval. Member-controlled counters do not safely enforce the server-side patient cap.",
      "subrows": null
    },
    {
      "label": "Code",
      "grade": "C",
      "weight": 0.15,
      "evidence": "Contract files are preserved, and executable rules tests cover basic access and capacity cases. Test coverage misses critical authorization and onboarding behavior. The package does not establish focused commits or broader implementation maintainability.",
      "subrows": null
    },
    {
      "label": "Technical",
      "grade": "B",
      "weight": 0.1,
      "evidence": "Build, tests and deploy all pass, with no console errors on the live site. There is a chunk size warning and 10 high severity dependency vulnerabilities.",
      "subrows": null
    }
  ],
  "metrics": [
    {
      "label": "Build time",
      "value": 7.4,
      "unit": "min"
    },
    {
      "label": "Install (npm ci)",
      "value": "EXIT 0",
      "unit": null
    },
    {
      "label": "Build",
      "value": "EXIT 0",
      "unit": null
    },
    {
      "label": "Unit tests",
      "value": "EXIT 0",
      "unit": null
    },
    {
      "label": "Rules probe: a member adds, edits and discharges a patient in its own clinic",
      "value": "ALLOWED",
      "unit": null
    },
    {
      "label": "Rules probe: change the demo clinic or a private clinic without signing in",
      "value": "denied",
      "unit": null
    },
    {
      "label": "Rules probe: read or edit another clinic's patients",
      "value": "denied",
      "unit": null
    },
    {
      "label": "Rules probe: a new account joins the demo clinic, then edits its patients",
      "value": "ALLOWED",
      "unit": null
    },
    {
      "label": "Rules probe: name another clinic in a new profile, then edit it",
      "value": "denied",
      "unit": null
    },
    {
      "label": "Rules probe: lower the counter, then add an 11th active patient",
      "value": "ALLOWED",
      "unit": null
    },
    {
      "label": "Rules probe: add an 11th active patient directly",
      "value": "denied",
      "unit": null
    },
    {
      "label": "Contract files",
      "value": "files: MATCH",
      "unit": null
    },
    {
      "label": "Live URL",
      "value": "HTTP 200",
      "unit": null
    },
    {
      "label": "Graded commit",
      "value": "2b26791",
      "unit": null
    },
    {
      "label": "API calls",
      "value": 15,
      "unit": null
    },
    {
      "label": "Cached prompt tokens",
      "value": 517632,
      "unit": null
    }
  ],
  "costBreakdown": [
    {
      "label": "Input tokens at $0.05/M (list price)",
      "usd": 0.004565
    },
    {
      "label": "Cached input tokens at $0.005/M (list price)",
      "usd": 0.002588
    },
    {
      "label": "Output tokens at $0.25/M (list price)",
      "usd": 0.003608
    }
  ],
  "liveUrl": "https://mai-code-2-flash-gb.web.app",
  "repoUrl": null,
  "footnotes": [
    "Graded by a blind panel of three AI reviewers, with Benchy making the final call.",
    "Reviewers: Claude Opus 5.5, GPT-6 Astra and GPT-6.1 Sol. Each rubric row is the median of their grades, then the rubric's weights and caps; Benchy cast no vote.",
    "Rubric cap applied: Security hole: Overall at most C minus, FIRE.",
    "Sitebench ran inside Copilot CLI's own agent loop (its own system prompt, tools and context handling), not the Codex-through-proxy harness used for OpenRouter models.",
    "Shell commands ran in Copilot's own macOS command sandbox with an enumerated deny policy instead of the harness agent.sb profile; the stream watcher, harness-side deploys, single-project Firebase setup, prompt and contract are the same.",
    "No output-token setting; reasoning effort medium (the model default).",
    "Copilot needs the real home directory for its login, so a shell startup script swapped HOME to the run's scratch home inside the command sandbox, as in other Sitebench runs.",
    "The Sitebench cost is billed AI credits (1 credit is one US cent) summed over every attempt, segment and any fix pass, not a list price.",
    "15 API calls over 7.4 min; the live URL returned HTTP 200 when graded.",
    "Billed in GitHub Copilot AI credits (1 credit = $0.01) on a Copilot plan, not BYOK."
  ],
  "evidence": null,
  "needsReview": false,
  "gradedBy": "panel",
  "scorePoints": 71
}