{
  "id": "sitebench--mai-code-2--2026-11-18--v2",
  "modelSlug": "mai-code-2",
  "modelName": "MAI Code 2",
  "provider": "Microsoft",
  "bench": "sitebench",
  "benchName": "Sitebench",
  "benchVersion": "v2",
  "rubricVersion": "sitebench@4",
  "promptVersion": "sitebench@2",
  "date": "2026-11-18",
  "overallGrade": "B",
  "verdict": "hire",
  "verdictReason": "A polished, functional handoff with strong access controls, but incomplete workflow verification and unresolved integrity and dependency issues",
  "verdictOverridden": false,
  "effort": "medium, the default",
  "tool": "GitHub Copilot CLI",
  "costUSD": 0.16815729999999998,
  "costEstimated": false,
  "url": "https://gruntbench.com/run/sitebench--mai-code-2--2026-11-18--v2",
  "verdictExplanation": null,
  "promptTokens": 1861753,
  "completionTokens": 33544,
  "reasoningTokens": 7945,
  "latencySeconds": 960,
  "tokensPerSecond": null,
  "firstTryWorks": true,
  "listPrice": {
    "inputPerM": 0.5,
    "outputPerM": 2.5
  },
  "fixPass": null,
  "scores": [
    {
      "label": "Design",
      "grade": "B",
      "weight": 0.35,
      "evidence": "The desktop interface looks cohesive and professional. Mobile care details remain readable without document-level horizontal scrolling. The mobile patient strip truncates identifying information and makes scanning ten patients cumbersome. Dark appearance, keyboard focus, and consistent 44 px targets are not demonstrated.",
      "subrows": null
    },
    {
      "label": "Works for the job",
      "grade": "B",
      "weight": 0.25,
      "evidence": "The seeded board and core authorized data operations are supported by concrete evidence. The server rejects an eleventh patient. Browser interaction coverage did not exercise patient navigation, search, filters, or autosave, so complete desktop and phone workflows remain unverified. The counter can diverge from actual patient occupancy.",
      "subrows": null
    },
    {
      "label": "Security",
      "grade": "B",
      "weight": 0.15,
      "evidence": "Membership checks protect clinic boundaries, and profile claims grant no access. The patient limit survives the demonstrated counter manipulation. Counter updates lack an invariant tying them to patient changes, leaving a demonstrated data-integrity gap. The dependency audit reports high and critical findings whose production exposure is not established.",
      "subrows": null
    },
    {
      "label": "Code",
      "grade": "B",
      "weight": 0.15,
      "evidence": "Contract files are intact, and the security logic is covered by targeted rules tests run against the emulator. The tests cover only Firestore rules, with nothing on client logic, and the code is shipped as one large unsplit bundle.",
      "subrows": null
    },
    {
      "label": "Technical",
      "grade": "B+",
      "weight": 0.1,
      "evidence": "Deployment and automated checks succeed. The captured layouts have no document-level horizontal scrolling. Bundle size and dependency audit findings need follow-up. Passing checks do not establish complete browser workflow coverage.",
      "subrows": null
    }
  ],
  "metrics": [
    {
      "label": "Build time",
      "value": 16,
      "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": "denied",
      "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": "denied",
      "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": "3b96628",
      "unit": null
    },
    {
      "label": "API calls",
      "value": 31,
      "unit": null
    },
    {
      "label": "Cached prompt tokens",
      "value": 1782272,
      "unit": null
    }
  ],
  "costBreakdown": [
    {
      "label": "Input tokens at $0.5/M (list price)",
      "usd": 0.03974
    },
    {
      "label": "Cached input tokens at $0.025/M (list price)",
      "usd": 0.044557
    },
    {
      "label": "Output tokens at $2.50/M (list price)",
      "usd": 0.08386
    }
  ],
  "liveUrl": "https://mai-code-2-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.",
    "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.",
    "31 API calls over 16.0 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": 85.3
}