{
  "id": "sitebench--grok-4-7--2026-10-15",
  "modelSlug": "grok-4-7",
  "modelName": "Grok 4.7",
  "provider": "xAI",
  "bench": "sitebench",
  "benchName": "Sitebench",
  "benchVersion": "v2",
  "rubricVersion": "sitebench@4",
  "promptVersion": "sitebench@2",
  "date": "2026-10-15",
  "overallGrade": "C-",
  "verdict": "fire",
  "verdictReason": "A good-looking read-only ward board with real seed data, but its database is publicly readable, its cap is bypassable, and no one can sign in to save anything",
  "verdictOverridden": false,
  "effort": "xhigh",
  "tool": "Codex",
  "costUSD": 3.786102,
  "costEstimated": false,
  "url": "https://gruntbench.com/run/sitebench--grok-4-7--2026-10-15",
  "verdictExplanation": null,
  "promptTokens": 5731386,
  "completionTokens": 93035,
  "reasoningTokens": 55770,
  "latencySeconds": 1794,
  "tokensPerSecond": null,
  "firstTryWorks": null,
  "listPrice": null,
  "fixPass": null,
  "scores": [
    {
      "label": "Design",
      "grade": "B-",
      "weight": 0.35,
      "evidence": "Clean, calm, product-like layout with a coherent token palette in both themes and readable, well-spaced forms. Inline confirm for discharge and inline validation copy are present. Header action placement and the text-only theme toggle feel unfinished, and the toast overlaps content. Mobile list-to-detail navigation is poor and the focus indicator is weak.",
      "subrows": null
    },
    {
      "label": "Works for the job",
      "grade": "D+",
      "weight": 0.25,
      "evidence": "Seed data is rich and varied, and read-only list and detail work at both widths with no overflow. Search and filter are missing and every write flow is dead because auth is not configured. The README still claims email sign-in saves edits.",
      "subrows": null
    },
    {
      "label": "Security",
      "grade": "F",
      "weight": 0.15,
      "evidence": "Cross-clinic reads are denied, there are no leaked secrets, and the seed data is fictional. Owner and patient data is readable by strangers, any account can self-join the clinic, and the server-side cap is trivially bypassed.",
      "subrows": null
    },
    {
      "label": "Code",
      "grade": "C-",
      "weight": 0.15,
      "evidence": "Contract files are byte-identical and deviations are documented, and the rules emulator tests exist. A single monolithic commit, one large main file, no logic tests, and a handoff README that claims working functionality the harness disproves.",
      "subrows": null
    },
    {
      "label": "Technical",
      "grade": "B-",
      "weight": 0.1,
      "evidence": "Clean build and test execution in the harness with HTTP 200 on the deployed site and zero runtime page errors on initial load. Firebase Authentication was left unconfigured on the live deployment (returning CONFIGURATION_NOT_FOUND) and the JS bundle exceeds 500 kB (511 kB).",
      "subrows": null
    }
  ],
  "metrics": [
    {
      "label": "Build time",
      "value": 29.9,
      "unit": "min"
    },
    {
      "label": "Time to first file",
      "value": 5.7,
      "unit": "min"
    },
    {
      "label": "Patients on first load (live site)",
      "value": "10 patient rows",
      "unit": null
    },
    {
      "label": "Visits per patient",
      "value": "FAIL for 'several visits each': 2 patients have 2 notes",
      "unit": null
    },
    {
      "label": "Search by name",
      "value": "FAIL: not built",
      "unit": null
    },
    {
      "label": "Filter",
      "value": "FAIL: not built",
      "unit": null
    },
    {
      "label": "Auth set up",
      "value": "MISSING",
      "unit": null
    },
    {
      "label": "Commits",
      "value": 1,
      "unit": null
    },
    {
      "label": "Tracked files",
      "value": 24,
      "unit": null
    },
    {
      "label": "App JS lines",
      "value": 945,
      "unit": null
    },
    {
      "label": "Test lines",
      "value": 131,
      "unit": null
    },
    {
      "label": "Largest file",
      "value": "src/main.js, 595 lines",
      "unit": null
    },
    {
      "label": "Unit tests",
      "value": "none",
      "unit": null
    },
    {
      "label": "Rules emulator tests",
      "value": "5 pass",
      "unit": null
    },
    {
      "label": "Firestore rules lines",
      "value": 133,
      "unit": null
    },
    {
      "label": "Bundle size",
      "value": 511,
      "unit": "kB"
    },
    {
      "label": "Rules probe: read another clinic",
      "value": "denied",
      "unit": null
    },
    {
      "label": "Rules probe: read patients without signing in",
      "value": "allowed (all patient and owner data is public)",
      "unit": null
    },
    {
      "label": "Rules probe: any signed-in user joins the clinic",
      "value": "allowed",
      "unit": null
    },
    {
      "label": "Rules probe: add an 11th active patient directly",
      "value": "denied (activeCount 10)",
      "unit": null
    },
    {
      "label": "Rules probe: shrink the counter, then add an 11th",
      "value": "allowed (11 active; repeating shrink plus add reached 16)",
      "unit": null
    },
    {
      "label": "Rules probe: add patients without bumping the counter",
      "value": "allowed (from 9 active, 4 creates all allowed, 13 active)",
      "unit": null
    },
    {
      "label": "Rules probe: create an unused clinic id",
      "value": "denied (clinic doc, member and patient in a new clinic id all denied; single hard-coded clinic 'harbor')",
      "unit": null
    },
    {
      "label": "Rules probe: reactivate a discharged patient when full",
      "value": "denied",
      "unit": null
    },
    {
      "label": "Contract files",
      "value": "unchanged: sizes 17548/4310/13285/1368 and sha256 match before, after and in git HEAD (CONTRACT-CHECK.txt)",
      "unit": null
    },
    {
      "label": "Paid APIs",
      "value": "none (no AI, transcription, maps or other fetch in src; Firebase web config only)",
      "unit": null
    },
    {
      "label": "Secrets in git",
      "value": "0 hits for .env values and token patterns across history (the only .env-name match is the git author email); one public Firebase web apiKey as expected",
      "unit": null
    },
    {
      "label": "Live URL",
      "value": "HTTP 200",
      "unit": null
    },
    {
      "label": "Repository",
      "value": "Private",
      "unit": null
    },
    {
      "label": "Graded commit",
      "value": "da7fd1e",
      "unit": null
    },
    {
      "label": "API calls",
      "value": 96,
      "unit": null
    },
    {
      "label": "Cached prompt tokens",
      "value": 5489920,
      "unit": null
    }
  ],
  "costBreakdown": [],
  "liveUrl": "https://patient-tracker-grok-4-7.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.",
    "Sitebench v2 (10-patient seed built by the model). Not directly comparable to v1/v1.1 runs such as Gemini 4 Argon High.",
    "Harness v3 attempt 3. Attempt 2 (14:00 to 14:24 ET) was VOIDED as a harness failure (an in-stream 502 ended the Codex turn); its result is kept as result.void-attempt2.json. Attempt 1 was aborted for a shell argv bug.",
    "Codex CLI 0.46 chat wire sends no reasoning field, so the proxy injects reasoning.effort xhigh.",
    "Screenshots were taken with load-wait copies of shots.js and dark.js (shots-load.js, dark-load.js): the originals time out on networkidle because Firestore keeps a listen channel open, and dark.js looks for an example-ward button this app does not have.",
    "Live site updated after grading: the live test site now serves a later build than the one graded. The repo got a security fix after the run (commit 78b723d, Oct 16, 2026) that limits patient records to the clinic staff list. The grade stays on the graded build (da7fd1e) and was not changed.",
    "Rulebook verdict was a borderline HIRE (Overall C). Ray changed it to FIRE on Oct 15, 2026 (7:14 PM ET): broken live sign-in and saving count as a core requirement not met. The grade stays C.",
    "Cost: this build attempt (ledger site-v2-build3:grok-4-7, proxy-total-build3.json): 96 calls, 5,731,386 prompt (5,489,920 cached), 93,035 completion, 55,770 reasoning tokens, 0 upstream retries, not blocked"
  ],
  "evidence": null,
  "needsReview": false,
  "gradedBy": "panel",
  "scorePoints": 71
}