llm-bench

"""Sleuth cases — auto-discovered by sleuth.py. Each .py file (not starting with _) exposes
CASES, a list of sleuth.Case; `_*.py` files are shared helpers, hashed into every case.

Case fields:
  case_id      stable item_id
  category     capability bucket: sleuth/<area>
  complaint    what the owner tells the model; never the cause
  context()    -> Docker build context {path: str | bytes | tools.Symlink}, "Dockerfile" included;
               snapshot cases use sleuth.snapshot(files, commands). Leave no trace of how the box
               was broken: flatten live images (FROM scratch + COPY --from) and ship no break script.
  culprit      regexes (re.I), every one must match findings culprit + root_cause
  reject       regexes, any match in the culprit fails it (a shotgun or wrong answer)
  fix          regexes, any match in findings fix passes (snapshot cases)
  check        live cases: shell command run after the session; exit 0 = fixed
  setup        live cases: commands run before the model connects (the breakage that needs runtime)
  ready        shell command polled until it exits 0 before the model connects
  key          substrings; output containing one shows the evidence (gate `seen`, first_key_check)
  expert       the shortest check sequence an expert would run (live: ending with the fix);
               validate requires it to show a KEY, len() is the row's expert_checks
  reference    findings {culprit, root_cause, fix} that must pass the gates
  wrong        findings (culprit[, root_cause]) that must fail the culprit gate
  docker_args  extra `docker run` arguments (tmpfs sizes, hostname)
"""