{
  "id": "sitebench--deepseek-v4-1-flash--2026-10-17--v2",
  "modelSlug": "deepseek-v4-1-flash",
  "modelName": "DeepSeek V4.1 Flash",
  "provider": "DeepSeek (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, well-tested shift board, failed by a self-join security hole that lets any new account edit or delete clinic patients, and missing search and filter",
  "verdictOverridden": false,
  "effort": "default (no reasoning setting sent; OpenRouter lists the model default as high)",
  "tool": "Codex",
  "costUSD": 0.371808,
  "costEstimated": false,
  "url": "https://gruntbench.com/run/sitebench--deepseek-v4-1-flash--2026-10-17--v2",
  "verdictExplanation": null,
  "promptTokens": 15819636,
  "completionTokens": 211596,
  "reasoningTokens": 108184,
  "latencySeconds": 2442,
  "tokensPerSecond": null,
  "firstTryWorks": null,
  "listPrice": null,
  "fixPass": null,
  "scores": [
    {
      "label": "Design",
      "grade": "B",
      "weight": 0.35,
      "evidence": "Looks like a real, coherent product in both themes, with careful typography, consistent spacing, no modals, and adequate touch targets. The account form dominates the first screen and pushes the board down, and the uniform amber 'Watch this' styling on every card weakens the visual hierarchy.",
      "subrows": null
    },
    {
      "label": "Works for the job",
      "grade": "C",
      "weight": 0.25,
      "evidence": "The list and detail flows work on the live site at both widths, with rich, varied seed data and a shift log. Two v1 flows, search and filter, are missing entirely, and visits were reshaped into a shift log rather than built as specified.",
      "subrows": null
    },
    {
      "label": "Security",
      "grade": "D",
      "weight": 0.15,
      "evidence": "The server enforces the patient cap and validation, and cross-clinic reads and profile-based clinic switching are denied. Treating the clinic id as the invite code lets any signed-up stranger join and edit or delete patients. A seed account password is also committed to the repo.",
      "subrows": null
    },
    {
      "label": "Code",
      "grade": "B-",
      "weight": 0.15,
      "evidence": "Strong test coverage of logic and rules, and the contract files were respected, with deviations documented. Three coarse commits do not meet the focused-commit bar, and the rules tests passed while missing the self-join hole.",
      "subrows": null
    },
    {
      "label": "Technical",
      "grade": "A-",
      "weight": 0.1,
      "evidence": "The build, all test suites, and the deploy succeed, with no console errors on the live site. The oversized bundle triggers the build warning.",
      "subrows": null
    }
  ],
  "metrics": [
    {
      "label": "Build time",
      "value": 40.7,
      "unit": "min"
    },
    {
      "label": "Patients on first load (live site)",
      "value": "10 patient cards",
      "unit": null
    },
    {
      "label": "Visits per patient",
      "value": "2 to 3 shift log entries 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": 3,
      "unit": null
    },
    {
      "label": "Tracked files",
      "value": 61,
      "unit": null
    },
    {
      "label": "App and test lines",
      "value": 4171,
      "unit": null
    },
    {
      "label": "App JS lines",
      "value": 2562,
      "unit": null
    },
    {
      "label": "Test lines",
      "value": 930,
      "unit": null
    },
    {
      "label": "Largest file",
      "value": "src/styles.css, 679 lines",
      "unit": null
    },
    {
      "label": "Unit tests",
      "value": "65 pass as committed",
      "unit": null
    },
    {
      "label": "Rules emulator tests",
      "value": "17 pass as committed (plus 9 integration tests on the emulator)",
      "unit": null
    },
    {
      "label": "Firestore rules lines",
      "value": 166,
      "unit": null
    },
    {
      "label": "Bundle size",
      "value": 824,
      "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",
      "unit": null
    },
    {
      "label": "Rules probe: another account edits a sample patient",
      "value": "denied before joining",
      "unit": null
    },
    {
      "label": "Rules probe: read another clinic's invite code",
      "value": "ALLOWED (any signed-in account can read any clinic document, invite code included, if it knows the clinic id; the clinic id is the invite code)",
      "unit": null
    },
    {
      "label": "Rules probe: join the sample clinic, then edit its patients",
      "value": "ALLOWED (a new account reads the sample board's code, joins, then edits sample patients)",
      "unit": null
    },
    {
      "label": "Rules probe: that new account deletes a patient",
      "value": "ALLOWED (that account can discharge sample patients)",
      "unit": null
    },
    {
      "label": "Rules probe: join the sample clinic with a wrong invite code",
      "value": "denied",
      "unit": null
    },
    {
      "label": "Rules probe: switch clinics by editing your own profile",
      "value": "denied (a profile can only point at a clinic you are a member of)",
      "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": "denied",
      "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; the seed account's default password for the model's own Firebase project is in scripts/seed.mjs (rotated by Grunt Bench after grading)",
      "unit": null
    },
    {
      "label": "Live URL",
      "value": "HTTP 200",
      "unit": null
    },
    {
      "label": "Repository",
      "value": "Private",
      "unit": null
    },
    {
      "label": "Graded commit",
      "value": "4f6da1c",
      "unit": null
    },
    {
      "label": "API calls",
      "value": 137,
      "unit": null
    },
    {
      "label": "Cached prompt tokens",
      "value": 14951296,
      "unit": null
    }
  ],
  "costBreakdown": [],
  "liveUrl": "https://patient-tracker-dsv41-flash.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: DeepSeek publishes the weights, so OpenRouter spread the calls across several hosts (DeepInfra, DigitalOcean, Together and three others).",
    "The model put the seed account's default password in scripts/seed.mjs. After grading, Grunt Bench changed that password to a random value kept off the repo, and 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-build1:deepseek-v4-1-flash: $0.371808 for 137 calls. A first launch a minute earlier stopped at the canary check before any model call ($0)."
  ],
  "evidence": null,
  "needsReview": false,
  "gradedBy": "panel",
  "scorePoints": 71
}