{
  "id": "sitebench--mai-code-1-1-flash--2026-10-29--v2",
  "modelSlug": "mai-code-1-1-flash",
  "modelName": "MAI-Code-1.1-Flash",
  "provider": "Microsoft",
  "bench": "sitebench",
  "benchName": "Sitebench",
  "benchVersion": "v2",
  "rubricVersion": "sitebench@4",
  "promptVersion": "sitebench@2",
  "date": "2026-10-29",
  "overallGrade": "C",
  "verdict": "fire",
  "verdictReason": "A clean-looking, deployed patient tracker with solid cross-clinic rules, but it is missing search, has a broken dark mode, uses a client-forgeable cap and needed a fix pass to install, so it is not ready for a real clinic",
  "verdictOverridden": false,
  "effort": "medium, the default",
  "tool": "GitHub Copilot CLI",
  "costUSD": 0.17542692,
  "costEstimated": false,
  "url": "https://gruntbench.com/run/sitebench--mai-code-1-1-flash--2026-10-29--v2",
  "verdictExplanation": null,
  "promptTokens": 2566287,
  "completionTokens": 78705,
  "reasoningTokens": 42752,
  "latencySeconds": 378,
  "tokensPerSecond": null,
  "firstTryWorks": false,
  "listPrice": {
    "inputPerM": 0.2,
    "outputPerM": 1.2
  },
  "fixPass": {
    "gradeBeforeFix": "C plus",
    "problem": "The delivered package.json paired firebase ^12 with @firebase/rules-unit-testing ^4, which needs firebase ^11, so a clean npm ci failed with an ERESOLVE error and the build and tests could not run from a fresh clone."
  },
  "scores": [
    {
      "label": "Design",
      "grade": "B-",
      "weight": 0.35,
      "evidence": "Looks like a real product, with tidy spacing, readable labels and a sensible desktop layout. Mobile reflows to a single column with no horizontal scroll (hscroll false). Dark mode visibly does nothing in the captures and the bg value is the same in both modes. The mobile detail header is awkwardly laid out, and the prefilled credentials on the sign-in card look unfinished.",
      "subrows": null
    },
    {
      "label": "Works for the job",
      "grade": "C+",
      "weight": 0.25,
      "evidence": "The seed loads on first visit and list-to-detail editing is present at both 390 px and desktop. The cap badge reads 10/10. Search and filter from the job scope are missing from the live DOM, and autosave is not evident. The theme toggle does not work.",
      "subrows": null
    },
    {
      "label": "Security",
      "grade": "C",
      "weight": 0.15,
      "evidence": "Ownership is tied to the auth uid, so cross-clinic and stranger access is tightly denied. Clinic delete is blocked outright. The 10-patient cap relies on a client-maintained counter that any owner can lower or skip, which is effectively client-only enforcement. Shared demo credentials in the client let anyone sign into the demo clinic.",
      "subrows": null
    },
    {
      "label": "Code",
      "grade": "C+",
      "weight": 0.15,
      "evidence": "The contract files are unchanged, and there are rules tests that exercise the honest-counter cap path. The test suite is thin, with no app logic tests and no coverage of the counter bypass. The shipped dependency set did not install from a clean clone, and hardcoded credentials sit in the app source.",
      "subrows": null
    },
    {
      "label": "Technical",
      "grade": "B+",
      "weight": 0.1,
      "evidence": "The corrected package installs, builds, tests, and serves successfully. The raw test failure is attributable to the grader's probe collection and emulator-port mismatch. Bundle size and dependency audit findings remain unresolved. Successful probe execution does not mean the tested security invariants all held.",
      "subrows": null
    }
  ],
  "metrics": [
    {
      "label": "Build time",
      "value": 6.3,
      "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": "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": "e307dc1",
      "unit": null
    },
    {
      "label": "API calls",
      "value": 50,
      "unit": null
    },
    {
      "label": "Cached prompt tokens",
      "value": 2401536,
      "unit": null
    }
  ],
  "costBreakdown": [
    {
      "label": "Input tokens at $0.2/M (list price)",
      "usd": 0.03295
    },
    {
      "label": "Cached input tokens at $0.02/M (list price)",
      "usd": 0.048031
    },
    {
      "label": "Output tokens at $1.20/M (list price)",
      "usd": 0.094446
    }
  ],
  "liveUrl": "https://mai-code-1-1-flash-gb.web.app",
  "repoUrl": null,
  "footnotes": [
    "Graded by a blind panel of two AI reviewers, with Benchy making the final call.",
    "Reviewers: Claude Opus 5.5 and GPT-6 Astra; Gemini 4 Argon sat out, because its reviewing credits were paused, so the remaining reviewers graded it. Each rubric row is the median of their grades, then the rubric's weights and caps; Benchy cast no vote.",
    "Ran inside the GitHub Copilot CLI's own agent loop (its own system prompt, tools and context handling), not the Codex-through-proxy harness used for OpenRouter models, at reasoning effort medium (the model's default, set explicitly). Shell commands ran in Copilot's own macOS command sandbox instead of the harness sandbox profile; the prompt, contract files, single-project Firebase setup and harness-side deploys are the same.",
    "Same Sitebench v2 prompt and contract files as the other v2 runs (files: MATCH).",
    "50 model calls across both attempts and the fix pass; the live URL returned HTTP 200 when graded.",
    "Re-run on Oct 29, 2026 after a harness fix (stall rule). The first attempt was stopped by the stream watcher because the Copilot command shell showed the real home folder and the model looked inside it for the Firestore emulator. That was our setup, not the model, so it was fixed (the command shell now swaps in the run's scratch home) and the run was repeated once with no penalty. The first attempt is not published and is not graded; its 6.67 credits are included in the cost.",
    "Fix pass used: a clean npm ci of the first delivered repository failed with a dependency conflict (firebase 12 against a test package that needs firebase 11). One fix message with the exact error was sent in the same Copilot session at the same medium effort; the fixed repository (clean npm ci, build and tests pass, live site still HTTP 200) is graded and 0.3 is deducted (ruling 1).",
    "Cost is billed GitHub Copilot AI credits (1 credit = $0.01), not a list price: 17.5427 credits ($0.1754) across both attempts and the fix pass, of which the fix pass used 1.7581."
  ],
  "evidence": null,
  "needsReview": false,
  "gradedBy": "panel",
  "scorePoints": 75.73
}