← catalog / Harness Engineering / Semantic code linting
Run a team's own conventions over a diff as a CI check: naming, error handling, secrets, tests, comments, and undocumented behaviour changes.
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"
}
}
}Derived from the questions above, so every backend is asked the same thing.