BLXBenchBLXBench UI
blxbench

Benchmark

Misc

DocsOur TestsPassSponsor / Partnership
DocsOur TestsPassSponsor / Partnership
BLXBenchBLXBench UI
blxbench

Benchmark

Suite

Misc

DocsOur TestsPassSponsor / Partnership
DocsOur TestsPassSponsor / Partnership
  1. Home
  2. Our Tests
  3. Debug-Setstate-Stale-Closure-V2
blxbench

Test fixture

Debug-Setstate-Stale-Closure-V2

Debuggingv2 — Resilienceeasyscorer: rubric_json_metrics

Bug fixes, edge conditions, and minimal patch accuracy.

How it is scored

The model receives the prompt (and optional system message). The run uses scorer rubric_json_metrics with the JSON configuration below. Pass/fail and partial credit are determined entirely by that scorer against the model output; no human grading.

User prompt
Return JSON only with keys diagnosis, fix, tests. A React-style state setter references the captured state variable directly inside an event handler; under rapid sequential updates the closure holds a stale value and increments are lost. Identify the stale closure bug and fix it.
Scorer config
{
  "metrics": {
    "repro": {
      "checks": [
        {
          "contains": [
            "stale"
          ]
        },
        {
          "contains": [
            "closure"
          ]
        },
        {
          "contains": [
            "rapid"
          ]
        },
        {
          "contains": [
            "lost"
          ]
        }
      ]
    },
    "hidden": {
      "checks": [
        {
          "contains": [
            "functional updater"
          ]
        },
        {
          "contains": [
            "prev =>"
          ]
        },
        {
          "contains": [
            "prevState"
          ]
        }
      ]
    },
    "diagnose": {
      "checks": [
        {
          "contains": [
            "stale closure"
          ]
        },
        {
          "contains": [
            "captured value"
          ]
        },
        {
          "contains": [
            "functional update"
          ]
        }
      ]
    }
  }
}
Run parameters

temperature

0

max_tokens

420

timeout (s)

120

type

scored

file

debug-setstate-stale-closure-v2.json

← PreviousDebug-Schema-Coercion-V2
|
Next →Debug-Shared-Abort-Controller-V2

BLXBench

Community driven leaderboardPublic benchmark runner — run in your environment, share results with the community.

© 2026 BLXBench by bitslix.com

ProvenanceAggregated from user runs
Scope41 / 11 / 490
Latestrun_3d5451 / 459 / $1.75
TermsPrivacy