DecisionBench
gpu · checking jev · jev-latest baseline · anthropic.claude-haiku-4-5 laya · not loaded von · not loaded

← catalog / Harness Engineering / Semantic code linting

Semantic lint in CI

Run a team's own conventions over a diff as a CI check: naming, error handling, secrets, tests, comments, and undocumented behaviour changes.

DetectionScoringVerification
Why this shape suits a decision model. These are conventions a static linter cannot express. Splitting blocking from advisory in code means the build breaks on secrets but not on comment style.
running…
Laya runs locally and its weights are not loaded yet. The first prediction would otherwise pay for reading them off disk, which is not inference and would not be a fair latency number.
Von runs locally and its weights are not loaded yet. The first prediction would otherwise pay for reading them off disk, which is not inference and would not be a fair latency number.

Input state

Questions

6 questions, declared once. Jev and Laya accept this shape directly; the Claude path renders it into a prompt and a JSON schema.

{
  "naming_convention": {
    "type": "noul",
    "instructions": {
      "question": "Does `diff` follow the team's naming rule described in `rule`?",
      "rule": "Booleans read as predicates (is_, has_, should_); functions that perform an action are named with a verb; no single-letter names outside short comprehensions and loop indices."
    },
    "criteria": {
      "true": "All new names in the diff follow the rule",
      "false": "At least one new name breaks the rule"
    }
  },
  "error_handling": {
    "type": "score",
    "instructions": "How well does this diff handle failure?",
    "criteria": [
      "Swallows errors silently or catches everything as a bare exception",
      "Catches broadly; the caller cannot tell what went wrong",
      "Catches specific errors but the message loses useful context",
      "Catches specific errors and preserves enough context to act on"
    ]
  },
  "secret_exposure": {
    "type": "noul",
    "instructions": "Does this diff risk exposing a secret?",
    "criteria": {
      "true": "Hardcodes a credential, logs a token, or writes a key into a message or file",
      "false": "No credential is hardcoded, logged, or written out"
    }
  },
  "test_coverage": {
    "type": "noul",
    "instructions": "Does the diff add or update tests covering the behaviour it changes?",
    "criteria": {
      "true": "Tests accompany the change and exercise the new behaviour",
      "false": "No tests, or tests unrelated to what changed"
    }
  },
  "comment_quality": {
    "type": "score",
    "instructions": "How useful are the comments this diff adds?",
    "criteria": [
      "Comments restate the code, or there are none where the logic is non-obvious",
      "Comments are present but generic",
      "Comments explain some of the non-obvious reasoning",
      "Comments explain why, not what, exactly where a reader would be puzzled"
    ]
  },
  "hidden_behaviour_change": {
    "type": "noul",
    "instructions": "Does this diff change behaviour in a way the commit message does not mention?",
    "criteria": {
      "true": "Alters defaults, ordering, or semantics beyond what the message describes",
      "false": "Behaviour changes match what the message describes"
    }
  }
}

Equivalent Claude prompt

Derived from the questions above, so every backend is asked the same thing.