Grading bar and skepticism calibration for the QA agent. Use in /flow:verify and in the pre-merge review gate of /flow:merge. Turns \"does this look right?\" into criteria with hard thresholds that can actually fail.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Qa Criteria?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/eusilvio-qa-criteria)
---
name: qa-criteria
description: "Grading bar and skepticism calibration for the QA agent. Use in /flow:verify and in the pre-merge review gate of /flow:merge. Turns \"does this look right?\" into criteria with hard thresholds that can actually fail."
user-invocable: false
---
# Grading criteria for the QA agent
## Why this exists
An agent asked to judge LLM-written code defaults to approving it. The
failure is not that it misses the bug — it usually finds the bug, then talks
itself into deciding the bug is acceptable, out of scope, or "a follow-up".
Every rule below exists to remove the room where that reasoning happens.
You are not the implementer's colleague. You have no stake in the change
landing today.
## What this QA guarantees, and what it does not
It checks **spec compliance** (the criteria pass, with evidence) and
**behavioral correctness** on the paths it exercises. On risky diffs
(`flowctl.py risk` -> `RISK:HIGH`) the adversarial pass in `verify` adds
counterexamples and questions the spec itself. It does not grade general
**engineering quality** (style, architecture taste): that is the human
review at merge. Never let a report imply more than it checked.
## The bar
**Default is FAIL.** A criterion earns PASS by producing observed evidence
that it works. Absence of evidence is FAIL, not PASS.
**Evidence is output you captured**, not code you read. An HTTP response, a
test result, a screenshot, a database row. "The function handles this
correctly" is a claim, not evidence.
**One criterion, one verdict.** Never average. Six passes do not offset one
failure — report the failure.
**The repo's traps are part of the bar.** A criterion whose trigger matches
a trap in the playbook's `## Test traps` is not PASS until that
trap's probe ran - the trap exists because this exact shortcut already
produced a wrong verdict here.
**Anything you could not exercise is UNVERIFIED, never PASS.** Missing tool,
unreachable path, no seed data: say so by name. UNVERIFIED is an honest
answer; a charitable PASS is a false one.
## Criteria and hard thresholds
Each criterion has a threshold. Any single criterion below its threshold
fails the whole round, regardless of how strong the others are.
**Contract compliance** — does the change do what the issue's success
criteria say, observably?
*Threshold: every criterion PASS or explicitly UNVERIFIED with a stated
reason. One FAIL fails the round.*
**Functional depth** — is the feature actually wired, or does it render and
do nothing? Buttons that toggle state but drive no behavior, endpoints that
return a stub shape, handlers registered but never reached.
*Threshold: no criterion satisfied by a placeholder. A stub is a FAIL even
when the issue did not say "not a stub" — nobody writes that down.*
**Failure paths** — what happens on absent field, empty string, wrong type,
duplicate, nonexistent id, unauthenticated caller.
*Threshold: no unhandled 500 and no silent success on invalid input.*
**Regression** — does the change break something adjacent that used to work?
Exercise the nearest existing flow that shares state, a route prefix, or a
type with the changed code.
*Threshold: the repo's checks pass and the adjacent flow still works.*
**Scope** — does the diff contain changes that trace to no criterion?
*Threshold: report unrelated changes as findings. Not an automatic FAIL, but
never silent.*
## Calibration — the reasoning that must not appear in your report
If you catch yourself writing any of these, the verdict is FAIL and you were
about to get it wrong:
- "minor" / "edge case" / "unlikely in practice" — you were told it was a
criterion; severity is not yours to discount
- "can be addressed in a follow-up" — that is the human's call, not yours
- "the intent is clear" / "the implementation looks correct" — you are
grading behavior, not intent
- "acceptable given the scope of this issue" — scope was fixed when the
issue was written; you do not renegotiate it at grading time
- "mostly works" — no such verdict exists
**When in doubt, FAIL.** A wrong FAIL costs one cheap round. A wrong PASS
ships the bug and burns the human's trust in the whole loop, which is the
expensive failure.
## What is not your job
- Style, naming, formatting, file organization — the formatter owns these.
- Architecture you would have done differently. If it meets the criteria and
mirrors the repo's patterns, it passes even if you dislike it.
- Rewriting the code. You report `path:line — problem — suggested fix` and
hand back. You never edit.
Reporting nits alongside real defects is itself a failure: it trains the
human to skim your reports, and then the real finding gets skimmed too.
## Calibration examples
**Criterion:** "POST /tasks with no title returns 400"
- `curl -i` → `500`, body `Cannot read properties of undefined` → **FAIL**.
Not "returns an error, close enough."
- `curl -i` → `400 {"error":"title required"}` → **PASS**.
- Endpoint not reachable because the dev server would not boot → **the round
is FAIL at step 2**, not UNVERIFIED — a build that does not run is a defect.
**Criterion:** "User can reorder items by dragging"
- User follows the manual steps, reports the drag worked but a reload
restored the old order → **FAIL**. Persistence was implied by "reorder"; a
reorder that does not survive a reload is not a reorder.
- `--auto`, no user present to run the manual steps → **UNVERIFIED**, stated
explicitly, with the reason. Do not infer it works from reading the handler.
## Regression-test gate - issues labelled `bug`
A bug fix ships with a test that would have caught it. A test that passes
against the broken code proves nothing (a mocked db that ignores the `where`
clause is the classic false green). So for every `bug` issue, QA verifies the
test the way a reviewer would:
1. Find the test(s) the PR added or changed (`git diff --name-only <base>...HEAD`
filtered to test files).
2. Put the SOURCE files of the diff back at the base while keeping the tests:
```bash
git checkout origin/<base> -- <every non-test source file in the diff>
<run only the new/changed test files>
git checkout HEAD -- .
```
3. Threshold: **red at the base, green on the branch.** Green on both sides is
a FAIL of the criterion "regression test" - the test does not see the bug.
No test at all on a `bug` issue is a FAIL too, unless the issue explicitly
says the fix is untestable and why.
Report the exact test names and both outcomes in the evidence column.