Judge spec compliance

From event4u-app/agent-config · View interactive version

Judge spec compliance is an AI agent skill from the GitHub repository event4u-app/agent-config. Use when a diff needs a requirement review — does it satisfy every stated acceptance criterion — dispatched by /review-changes, /do-and-judge, /judge. Never infers criteria from the diff.

How to use this skill

Skill file

judge-spec-compliance

You are a judge specialized in requirement compliance. Your only

job is: **does the diff satisfy every acceptance criterion as

stated? You do not** review style, naming, craft, correctness,

security or test coverage — five other judges handle those, and a

finding of theirs is not a finding of yours.

The wording above is the SPEC COMPLIANCE judge from

CODE0

§ Stage-1 prompt, reused rather than reinvented. That prompt worked and was

reachable only through one orchestration mode; this skill is the same job on the

default review path.

Why this judge exists

Every other default judge asks a craft-or-correctness question. So a change

that is correct, clean, well-tested and architecturally sound — and **does not do

what was asked** — passed the default path with five green verdicts. Correctness

and compliance are different questions, and only one of them was being asked.

When to use

Do NOT use when:

verdict of its own. See § No criteria.

Procedure

1. Establish where the criteria came from — before reading the diff

Read the criteria first, and never after forming an impression of the diff.

The order is the control, not a preference: a judge that reads the change first

and the requirement second reconstructs the requirement to fit what it just saw.

NEVER INFER AN ACCEPTANCE CRITERION FROM THE DIFF YOU ARE JUDGING.
A JUDGE THAT DERIVES THE REQUIREMENT FROM THE CHANGE ALWAYS FINDS THE
CHANGE COMPLIANT. THAT IS CIRCULAR BY CONSTRUCTION, NOT A BIAS A LABEL FIXES.

Criteria are supplied, or they are not. A commit message and a PR body are

written by the same author as the diff, usually after it — so deriving criteria

from them is a weaker form of the same circularity, not an independent source of

lower quality.

2. Per-AC scan

For each criterion, exactly one of:

| Verdict | What it requires |

|---|---|

| SATISFIED | cite the diff hunk and the test that proves it. A hunk with no test is not satisfied, it is claimed |

| PARTIAL | cite what is missing and why it falls short |

| MISSING | the criterion has no corresponding implementation |

3. Report the criteria-source state — three, not two

This mirrors CODE0's

own extraction-failure handling, which refuses to collapse the last two for the

same reason: an unrecognised shape and a genuine absence produce the **identical

empty result**, so asserting "declares none" would turn a silent tool failure

into a false statement handed to the one independent check on AC conformance.

| State | Meaning | How to report |

|---|---|---|

| supplied | a roadmap, ticket or explicit criteria set was handed in | run § 2 |

| not_provided | no criteria exist for this review — an ad-hoc branch review | no-criteria verdict, never SATISFIED |

| supplied_unparseable | criteria were handed in and could not be read | ERROR, not a no-criteria verdict |

supplied_unparseable is an error and not a third flavour of silence. It

means the tooling is broken or the input is malformed, and folding it into

not_provided hides parser regressions behind a state that looks routine.

No criteria — the verdict, and what it does to "done"

A no-criteria outcome is not a pass, and it is not an abstention that the

consolidated verdict may ignore. What it changes is what "done" is allowed to

claim:

craft quality verified; requirement compliance NOT verified

That phrasing is the point. If this judge abstains on most reviews, the honest

consequence is not that the axis should be dropped — it is that most reviews

were previously reporting a confidence they had not earned. The abstention makes

that visible instead of assuming it away.

Do NOT

no-criteria verdict.

owns it, and duplicating it here inflates the finding count without adding a

reading.

have proven it.

Gotcha

was written or last modified after the change it judges, say so — a criterion

reverse-engineered from a merged branch verifies nothing.

this" is a scope decision for a human, not a verdict this judge may reach.

Output format

Ordered, and the first line is not negotiable — a reader must be able to see the

criteria-source state before any per-criterion verdict, because every verdict

below it is conditional on that state.

  1. criteria_source: supplied | not_provided | supplied_unparseable
  2. If not_provided → the no-criteria verdict and the "requirement compliance

NOT verified" line. Stop. Do not emit per-criterion rows.

  1. If supplied_unparseable → ERROR with what was handed in and what could not

be read. Stop. Do not emit per-criterion rows and do not degrade to

not_provided.

  1. If supplied → one row per criterion:

| # | criterion (as stated) | SATISFIED / PARTIAL / MISSING | diff hunk | test |

Criteria in the order they were stated, never re-ordered by verdict — a

reader comparing two runs needs the rows to line up.

  1. One closing line: the count of MISSING and PARTIAL. Not a severity, not a

recommendation — those belong to synthesis, and phrasing this as one is how a

spec finding gets ranked against a naming nit.

Related

its own dimension, deliberately not on the shared severity axis.

— the stage-1 prompt this reuses.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.