{
  "id": "sitebench--glm-5-3--2026-10-17--v2",
  "modelSlug": "glm-5-3",
  "modelName": "GLM-5.3",
  "provider": "Z.ai (open weights)",
  "bench": "sitebench",
  "benchName": "Sitebench",
  "benchVersion": "v2",
  "rubricVersion": "sitebench@4",
  "promptVersion": "sitebench@2",
  "date": "2026-10-17",
  "overallGrade": "C-",
  "verdict": "fire",
  "verdictReason": "A polished-looking patient board with a working detail view, sunk by a self-join security hole that lets any new account edit or delete patients and by missing search and filter",
  "verdictOverridden": false,
  "effort": "default (no reasoning setting sent; OpenRouter lists the model default as max)",
  "tool": "Codex",
  "costUSD": 1.278346,
  "costEstimated": false,
  "url": "https://gruntbench.com/run/sitebench--glm-5-3--2026-10-17--v2",
  "verdictExplanation": null,
  "promptTokens": 9154945,
  "completionTokens": 96820,
  "reasoningTokens": 45444,
  "latencySeconds": 1362,
  "tokensPerSecond": null,
  "firstTryWorks": null,
  "listPrice": null,
  "fixPass": null,
  "scores": [
    {
      "label": "Design",
      "grade": "B",
      "weight": 0.35,
      "evidence": "This looks like a real, calm clinical product with careful light and dark themes, readable status badges, iconography and comfortable target sizes. There are no modals and no horizontal overflow at either width. The desktop composition wastes space beside the sign-in card, and the mobile header toggle placement is awkward. The full edit form is shown to signed-out visitors, and overdue vaccines get no visual flag.",
      "subrows": null
    },
    {
      "label": "Works for the job",
      "grade": "C",
      "weight": 0.25,
      "evidence": "The list, the detail view, the seeded records with 4 visits each, and the server-side cap all work on the live site at both widths. Search and filter, both core PRD flows, are missing entirely, and overdue vaccines are not surfaced, so several v1 flows are absent.",
      "subrows": null
    },
    {
      "label": "Security",
      "grade": "D",
      "weight": 0.15,
      "evidence": "Cross-clinic reads, clinic switching and the 11th-patient cap are all enforced on the server, and no secrets leak. Any new sign-up joins the clinic and can edit or delete its patients, which is exactly the rubric's hard-cap hole. The rules also do no field or type validation.",
      "subrows": null
    },
    {
      "label": "Code",
      "grade": "C",
      "weight": 0.15,
      "evidence": "The contract files are untouched, and there is a real Firestore rules test suite on the emulator. A single commit gives no focused history, there are no unit tests for app logic, and the rules tests missed the self-join hole.",
      "subrows": null
    },
    {
      "label": "Technical",
      "grade": "B",
      "weight": 0.1,
      "evidence": "Deployment, installation, and build are verified by the harness. Both viewport sizes and themes render successfully. The oversized JavaScript chunk remains a performance concern. Passing technical checks do not validate the missing workflows or unsafe authorization.",
      "subrows": null
    }
  ],
  "metrics": [
    {
      "label": "Build time",
      "value": 22.7,
      "unit": "min"
    },
    {
      "label": "Patients on first load (live site)",
      "value": "10 patient cards",
      "unit": null
    },
    {
      "label": "Visits per patient",
      "value": "4 visits per patient",
      "unit": null
    },
    {
      "label": "Search by name",
      "value": "None: the board has no search box",
      "unit": null
    },
    {
      "label": "Filter",
      "value": "None: the board has no filter",
      "unit": null
    },
    {
      "label": "Auth set up",
      "value": "Email/password configured by the harness before the run; the app uses email and password only (no Google button).",
      "unit": null
    },
    {
      "label": "Commits",
      "value": 1,
      "unit": null
    },
    {
      "label": "Tracked files",
      "value": 33,
      "unit": null
    },
    {
      "label": "App and test lines",
      "value": 2571,
      "unit": null
    },
    {
      "label": "Largest file",
      "value": "src/styles.css, 647 lines",
      "unit": null
    },
    {
      "label": "Unit tests",
      "value": "none",
      "unit": null
    },
    {
      "label": "Rules emulator tests",
      "value": "9 pass as committed",
      "unit": null
    },
    {
      "label": "Firestore rules lines",
      "value": 55,
      "unit": null
    },
    {
      "label": "Bundle size",
      "value": 648,
      "unit": "kB"
    },
    {
      "label": "Rules probe: read the demo ward without signing in",
      "value": "allowed (by design: the sample board is public to read)",
      "unit": null
    },
    {
      "label": "Rules probe: change the demo ward without signing in",
      "value": "denied",
      "unit": null
    },
    {
      "label": "Rules probe: read another clinic's patients",
      "value": "denied (another clinic's patients)",
      "unit": null
    },
    {
      "label": "Rules probe: another account edits a sample patient",
      "value": "denied before a profile exists",
      "unit": null
    },
    {
      "label": "Rules probe: join the sample clinic, then edit its patients",
      "value": "ALLOWED (any new account creates its own profile in the sample clinic, which the app does on sign-up, then edits sample patients)",
      "unit": null
    },
    {
      "label": "Rules probe: that new account deletes a patient",
      "value": "ALLOWED (that account can delete sample patients or overwrite one with junk)",
      "unit": null
    },
    {
      "label": "Rules probe: switch clinics by editing your own profile",
      "value": "denied",
      "unit": null
    },
    {
      "label": "Rules probe: add an 11th patient in slot 11",
      "value": "denied",
      "unit": null
    },
    {
      "label": "Rules probe: add an 11th patient outside the slots",
      "value": "denied",
      "unit": null
    },
    {
      "label": "Rules probe: save a patient with no medication",
      "value": "ALLOWED (the rules check no fields: empty medications and wrong types are accepted)",
      "unit": null
    },
    {
      "label": "Contract files",
      "value": "unchanged: sha256 match before, after and in git HEAD (CONTRACT-CHECK.txt)",
      "unit": null
    },
    {
      "label": "Paid APIs",
      "value": "none (Firebase web config only; dictation is the browser Web Speech API)",
      "unit": null
    },
    {
      "label": "Secrets in git",
      "value": "one public Firebase web apiKey as expected; no passwords (the seed account uses a random password that is never stored)",
      "unit": null
    },
    {
      "label": "Live URL",
      "value": "HTTP 200",
      "unit": null
    },
    {
      "label": "Repository",
      "value": "Private",
      "unit": null
    },
    {
      "label": "Graded commit",
      "value": "fb7b453",
      "unit": null
    },
    {
      "label": "API calls",
      "value": 84,
      "unit": null
    },
    {
      "label": "Cached prompt tokens",
      "value": 8870016,
      "unit": null
    }
  ],
  "costBreakdown": [],
  "liveUrl": "https://patient-tracker-glm53b.web.app",
  "repoUrl": null,
  "footnotes": [
    "Graded by a blind panel of three AI reviewers, with Benchy making the final call. Earlier grade: C minus (Fire), from a single grader on the same v4 rubric and the same run files.",
    "Reviewers: Claude Opus 5.5, GPT-6 Astra and Gemini 4 Argon. 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.",
    "Ran through OpenRouter, default settings: no reasoning or effort setting was sent, so the model used its default, the way most people use it.",
    "Open weights: Z.ai publishes the weights, so OpenRouter can route the calls to other hosts (Sail Research and Makora here).",
    "Second attempt, no deduction: the first attempt was stopped by a false alarm in the harness's security watch (a browser profile inside the workspace), so the build was rerun fresh on a new Firebase project and repo.",
    "After grading, Grunt Bench set the test site's Firestore rules to read-only so nobody can change the sample board.",
    "Same Sitebench v2 prompt and contract files as the other v2 runs, with only names, web config and the model changed.",
    "Cost: OpenRouter credits for this run, from the Otis ledger line site-v2-build2:glm-5-3: $1.278346 for 84 calls. The first attempt (site-v2-build1:glm-5-3, $1.286811) was stopped by a harness false positive and is not graded; it is counted in the batch spend."
  ],
  "evidence": null,
  "needsReview": false,
  "gradedBy": "panel",
  "scorePoints": 71
}