{
 "schema": "skillalmanac-eval-bundle-v1",
 "skill": "/skills/addyosmani/code-review-and-quality",
 "note": "Stored per-task, per-run records of the measured with/without comparison. Executor outputs and grading folders are not included. Both models are AI models from one family; there is no human grader.",
 "record": {
  "slug": "addyosmani--code-review-and-quality",
  "procedure": "measured-v2",
  "stage": "final",
  "executor_model": "claude-haiku-5-5",
  "grader_model": "claude-sonnet-5-5",
  "second_grader_model": "claude-opus-5-5",
  "date": "2026-11-24",
  "runs_per_config": 1,
  "tasks": [
   {
    "task": "v2-t1",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "Verdict/offset/total_pages/tests assertions are passed trivially by both sides.",
     "The 'add tests' regex passes on a mere passing mention; it does not check that tests target the offset bug.",
     "No assertion checks for speculative blocking findings (X's authorization point) or that offset is ranked first."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "tie",
      "order_a": "with_skill",
      "order_b": "baseline",
      "order_consistent": false,
      "with_pass": 7,
      "with_total": 7,
      "with_unknown": 0,
      "base_pass": 7,
      "base_total": 7,
      "base_unknown": 0,
      "with_score": 8,
      "base_score": 7,
      "reason": "Both find the offset and total_pages bugs and say do not merge. Y ranks the offset as the single Critical item with a worked example and stays within the diff, while X marks an unverifiable IDOR concern as blocking."
     }
    ]
   },
   {
    "task": "v2-t2",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "All script assertions are passed trivially by both; the regexes are very loose (e.g. 'parameter' or '?' matches almost anything).",
     "No script assertion checks that the correctly parameterised login query is not flagged (judge only).",
     "The malformed patch is a real finding that no assertion covers."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "tie",
      "order_a": "tie",
      "order_b": "tie",
      "order_consistent": true,
      "with_pass": 7,
      "with_total": 7,
      "with_unknown": 0,
      "base_pass": 7,
      "base_total": 7,
      "base_unknown": 0,
      "with_score": 8,
      "base_score": 8,
      "reason": "Both give a clear no-merge, rank SQL injection and password logging as critical, and give a parameterized fix. Y cites diff line numbers and verified the corrupt patch by command; X adds a slightly more detailed attack example."
     }
    ]
   },
   {
    "task": "v2-t3",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "All script assertions pass trivially for both; the verdict regex and 'one query' / 'None' terms are very loose.",
     "The 'optional extra' assertion passes on any occurrence of 'None' or 'raises'.",
     "No assertion penalises padding or checks that the mutable default is ranked first."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "tie",
      "order_a": "tie",
      "order_b": "tie",
      "order_consistent": true,
      "with_pass": 7,
      "with_total": 7,
      "with_unknown": 0,
      "base_pass": 7,
      "base_total": 7,
      "base_unknown": 0,
      "with_score": 8,
      "base_score": 8,
      "reason": "Both name the mutable default as the top bug with the cross-user leak and give in_/join batch fixes. Y labels it Critical and gives a join rewrite but inflates many items to Required; X is a bit tighter."
     }
    ]
   },
   {
    "task": "v2-t4",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "All script assertions are trivially met by both.",
     "The line-reference assertion is satisfied by quoted snippets, so it does not check precise locations.",
     "No script assertion checks the 'fail startup when JWT_SECRET unset' recommendation (judge only)."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "tie",
      "order_a": "with_skill",
      "order_b": "tie",
      "order_consistent": false,
      "with_pass": 7,
      "with_total": 7,
      "with_unknown": 0,
      "base_pass": 7,
      "base_total": 7,
      "base_unknown": 0,
      "with_score": 9,
      "base_score": 8,
      "reason": "Both reject, call it an authentication bypass, rebut the performance premise and ask to restore verify and fail fast. X adds concrete regression tests and a safe caching alternative; Y is shorter but has one unclear bullet."
     }
    ]
   },
   {
    "task": "v2-t5",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "Every assertion is passed by both; the task is easy and the checks are lenient.",
     "The 'rename' regex matches either 'rename' or 'unchanged', so it does not confirm a behaviour-unchanged claim specifically.",
     "No assertion checks accuracy against the diff (e.g. the loop variable rename)."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "tie",
      "order_a": "tie",
      "order_b": "tie",
      "order_consistent": true,
      "with_pass": 6,
      "with_total": 6,
      "with_unknown": 0,
      "base_pass": 6,
      "base_total": 6,
      "base_unknown": 0,
      "with_score": 9,
      "base_score": 9,
      "reason": "Both are accurate three-sentence summaries of 50 words with no review framing. Y leads with the gist; X mentions the loop-variable rename."
     }
    ]
   },
   {
    "task": "v2-t6",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "The verdict regex ('fix|changes|ready') is so loose it passes almost any text.",
     "Both wrote reply.md instead of review.md; the fallback clause makes the assertion pass regardless.",
     "No script assertion checks that assumptions are stated (judge only)."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "with_skill",
      "order_a": "with_skill",
      "order_b": "with_skill",
      "order_consistent": true,
      "with_pass": 6,
      "with_total": 6,
      "with_unknown": 0,
      "base_pass": 6,
      "base_total": 6,
      "base_unknown": 0,
      "with_score": 8,
      "base_score": 7,
      "reason": "Both catch the bare except, empty-average crash and list-vs-dict failure. X reproduced the crashes by running them and ties the root cause to the list fallback; Y only read the code and its rewrite drops the error handling."
     }
    ]
   },
   {
    "task": "v2-t7",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "Assertions 1 and 5 overlap (both are verdict regexes) and both sides pass trivially.",
     "Line-reference assertion is satisfied by any quoted snippet from a 15-line diff, so it does not discriminate.",
     "No assertion checks the atomicity/idempotency issue (gateway call before save_refund), which both sides raised and is a real money risk.",
     "Regex for the over-refund check matches generic words like 'positive' or 'double'."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "with_skill",
      "order_a": "with_skill",
      "order_b": "with_skill",
      "order_consistent": true,
      "with_pass": 7,
      "with_total": 7,
      "with_unknown": 0,
      "base_pass": 7,
      "base_total": 7,
      "base_unknown": 0,
      "with_score": 9,
      "base_score": 8,
      "reason": "Both give a correct negative verdict, lead with the over-refund guard, and reject deferred tests. X verifies the exact 19.99->1998 case with several other examples and lists concrete test cases; Y adds actor/audit and race points but is a bit more diffuse."
     }
    ]
   },
   {
    "task": "v2-t8",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "Verdict and negative-verdict assertions are near duplicates and trivially passed by both.",
     "Second-problem regex matches the word 'author' or 'validat', which almost any review hits.",
     "Line-reference assertion is trivially satisfied by quoting the innerHTML line.",
     "No assertion checks that the review does not invent route details, only the judge does.",
     "Unchecked: comments never loaded on page visit (Y found it, X did not)."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "with_skill",
      "order_a": "with_skill",
      "order_b": "with_skill",
      "order_consistent": true,
      "with_pass": 7,
      "with_total": 7,
      "with_unknown": 0,
      "base_pass": 7,
      "base_total": 7,
      "base_unknown": 0,
      "with_score": 9,
      "base_score": 8,
      "reason": "Both rightly block on the stored XSS with a textContent fix and add valid secondary findings. Y gives the missing route its own required item, adds the real bug that existing comments never load on page visit, and includes a what-is-fine section; X buries the missing route in a minor item."
     }
    ]
   },
   {
    "task": "v2-t9",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "Verdict and negative-verdict assertions are redundant; both always pass when any review says block.",
     "Assertion 3 regex ('distinct', 'dedup', 'Counter', 'set(') matches almost any fix text, so it does not truly test that the output bug was understood.",
     "Assertion 5 ('set(' or 'collections') is trivially hit by anyone proposing Counter.",
     "No assertion checks that the unique_in_order issue is correctly scoped as off the nightly path (README says report uses only find_duplicates).",
     "Blank-line ids and encoding are not checked by script, only by judge."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "tie",
      "order_a": "tie",
      "order_b": "tie",
      "order_consistent": true,
      "with_pass": 7,
      "with_total": 7,
      "with_unknown": 0,
      "base_pass": 7,
      "base_total": 7,
      "base_unknown": 0,
      "with_score": 8,
      "base_score": 8,
      "reason": "Both block on the quadratic find_duplicates with the same Counter fix, catch the per-occurrence output bug, blank-line ids and unique_in_order. X lists the output bug as its own blocker and mentions BOM/normalization; Y backs the scale claim with measured timings, so I call it even."
     }
    ]
   },
   {
    "task": "v2-t10",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "Positive-verdict regex is loose: 'Not fine to merge' contains 'fine to merge', and the negative list omits 'not fine'/'blocking', so a negative review can pass; it needs to be judged.",
     "The critical/vulnerability regex only catches words, not an inflated verdict; Y passes it while blocking the PR.",
     "Hunk-header mismatch in the fixture is not mentioned in the task text, so no assertion tells whether flagging it is right or wrong; only the judge decides.",
     "Assertions 1, 4 and 5 are passed trivially by both sides."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "with_skill",
      "order_a": "with_skill",
      "order_b": "with_skill",
      "order_consistent": true,
      "with_pass": 6,
      "with_total": 6,
      "with_unknown": 0,
      "base_pass": 4,
      "base_total": 6,
      "base_unknown": 0,
      "with_score": 9,
      "base_score": 4,
      "reason": "X correctly approves a sound, tested change, ran the tests, proved a mutation is caught, and offers only optional notes. Y agrees the logic and tests are right but refuses to approve over diff hunk-header counts, which turns a mergeable change into a blocked one."
     }
    ]
   },
   {
    "task": "v2-t11",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "The task is trivially passed by both; assertions cannot discriminate.",
     "Assertion 1's 'no seperate' check would false-fail a file that kept the correct word 'separately' only if the regex were naive; here it passes.",
     "No assertion checks the docstring/comment-only fixes such as 'capitalise' (British spelling left alone), which is correct but unverified."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "tie",
      "order_a": "tie",
      "order_b": "tie",
      "order_consistent": true,
      "with_pass": 5,
      "with_total": 5,
      "with_unknown": 0,
      "base_pass": 5,
      "base_total": 5,
      "base_unknown": 0,
      "with_score": 10,
      "base_score": 10,
      "reason": "Both outputs are byte-identical: exactly the two comment typos fixed, same 17 lines, nothing else touched. Both replies are one short sentence with no review commentary."
     }
    ]
   },
   {
    "task": "v2-t12",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "Every script assertion except the key-count one depends on review.md, but the request never names that file; both sides fail them identically through no fault of content. Should accept reply.md or name the file.",
     "Key-count assertion is vacuously passed when review.md is absent.",
     "Credential, injection and error-handling regexes match very generic words ('secret', 'injection', 'transaction', 'batch').",
     "No assertion checks that the review recommends rotating the key or that the empty request was handled without stalling; only the judge does."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "with_skill",
      "order_a": "with_skill",
      "order_b": "with_skill",
      "order_consistent": true,
      "with_pass": 2,
      "with_total": 8,
      "with_unknown": 0,
      "base_pass": 2,
      "base_total": 8,
      "base_unknown": 0,
      "with_score": 8,
      "base_score": 8,
      "reason": "Both reached the same correct verdict and top issues (credential, SQL injection, no HTTP error handling, non-atomic update) and neither wrote review.md; both put the review in reply.md. X states its intent assumption and also covers rollback and import side effects, while Y gives fuller fix snippets and truncates the key."
     }
    ]
   }
  ],
  "with_pass": 74,
  "with_total": 80,
  "base_pass": 72,
  "base_total": 80,
  "inconsistent_order_pairs": 2,
  "stats": {
   "n_tasks": 12,
   "n_pairs": 12,
   "with_rate": 0.9375,
   "base_rate": 0.9097222222222222,
   "delta": 0.02777777777777778,
   "se": 0.027777777777777783,
   "ci_low": -0.03336111111111112,
   "ci_high": 0.08891666666666669,
   "win_score": 0.7083333333333334,
   "win_ci_low": 0.5447472025316772,
   "win_ci_high": 0.8719194641349896,
   "corr_arms": 0.9080624607468551,
   "between_task_var": 0.00925925925925926,
   "within_task_var": null,
   "pass_all_with": 0.9166666666666666,
   "pass_all_base": 0.8333333333333334,
   "mde_80": 0.17557221686056523,
   "harmed_tasks": [],
   "saturated_tasks": [
    "v2-t1",
    "v2-t2",
    "v2-t3",
    "v2-t4",
    "v2-t5",
    "v2-t6",
    "v2-t7",
    "v2-t8",
    "v2-t9",
    "v2-t11"
   ],
   "verdict": "LIFT_UNCONFIRMED"
  },
  "verdict": "LIFT_UNCONFIRMED",
  "tokens": {
   "authoring": 103966,
   "refcheck": 199082,
   "baseline": 115588,
   "with_skill": 250226,
   "grading": 601739,
   "total": 1270601
  }
 }
}
