agentleFS
willink-osswillink-oss/willink-claude-kit/skills/judge-rubric-vote/SKILL.md

judge-rubric-vote

Skill0 starsChanged 4 months agoMITView on GitHub

Aggregate N independent judge votes (verdict + optional score) into a majority verdict gated by a deterministic agreement threshold. A split panel is \"hung\" and FAILS instead of being spun as a pass; no votes = observe (exit 2), never a fail-open pass. No LLM call — pure deterministic tally. Triggers: judge vote, judge-vote, rubric vote, majority verdict, LLM judge panel, agreement threshold, hung jury.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never trust a single judge's self-report.

    line 9
  2. Very specific:

    Default output is a human-readable summary.

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

judge-rubric-vote

Never trust a single judge's self-report. This gate takes N independent judge votes and aggregates them into one majority verdict — but the verdict only stands when the agreement rate clears a deterministic threshold. When the votes split, the panel is hung, and hung FAILS; it is never rounded up into a pass. The tally is deterministic (a Counter over the verdicts, no LLM call), so the same votes always produce the same verdict.

agreement = (votes for the majority verdict) / (valid votes)
pass  iff  agreement >= --agree (default 0.66)
otherwise -> hung -> fail

Input format

--votes takes a JSON list; each element is an object with a required verdict (any JSON value) and an optional numeric score. - reads the list from stdin.

[
  {"verdict": "pass", "score": 0.9},
  {"verdict": "pass", "score": 0.85},
  {"verdict": "fail", "score": 0.4}
]
  • Elements without a verdict key are ignored (not counted as votes).
  • score is optional; it feeds mean_score / score_variance only, never the verdict.

Status / exit codes

statuswhenexitmeaning
passagreement >= --agree0consensus — adopt the majority verdict
failagreement < --agree1hung — the panel is split; re-judge or add votes
observemissing file / non-JSON / not-a-list / 0 valid votes2not measurable — do not adopt

observe exits 2, not 0, deliberately. A standalone gate that exited 0 when the votes file was missing would be fail-open: a && caller would read "no votes" as consensus. 2 = "unknown, do not adopt" (the kit's abstain/unknown convention), so absence can never be mistaken for agreement.

How to run

python3 "${CLAUDE_PLUGIN_ROOT:-.}/scripts/judge-vote.py" --votes <votes.json> [--agree 0.66] [--json]
  • Default output is a human-readable summary; --json emits a dict with subcommand ("judge-vote"), status, score (= agreement), threshold, metrics (votes / verdicts / majority / agreement / mean_score / score_variance), findings, and verdict (the adopted majority verdict).
  • Branch on the exit code: 0 adopt, 1 the panel is hung (escalate / re-judge), 2 you have no usable votes.

score_variance — the "agree on the verdict, disagree on the score" signal

score_variance is the population variance of the votes' scores. It is a visibility number, not part of the pass/fail decision: judges can all vote pass (agreement 1.0) while their scores are 0.5 / 0.9 / 0.6. High variance next to a passing verdict means the panel agrees on the label but not on the degree — worth a human glance even though the gate passed.

Deterministic health check (--self-test)

The script's own correctness is machine-verified, not self-reported:

python3 "${CLAUDE_PLUGIN_ROOT:-.}/scripts/judge-vote.py" --self-test
  • exit 0 = PASS. It builds hermetic tempfile fixtures and runs them through the real load path (no hardcoded success): 3/3 unanimous → pass (exit 0); 3-way split (agreement 0.33) → hung/fail (exit 1); missing file → observe (exit 2); non-list JSON → observe; a vote lacking verdict ignored (2 valid + 1 invalid → pass, votes = 2); and a 2-of-3 case that straddles the bar (agreement 0.667 passes at --agree 0.66 but fails at --agree 0.7) to prove the threshold is live.
  • non-zero: the tally logic, the threshold, or an exit-code mapping has regressed. CI / periodic health checks treat the exit 0 as the green floor.

When to use / not

  • ✅ You have (or can produce) several independent judge verdicts on one artifact and want a deterministic, fail-closed consensus decision.
  • ❌ Only one judge / no independent second opinion (there is nothing to aggregate), or a decision that is not a discrete verdict.

Sibling gates

  • adversarial-refute-vote — the adversarial counterpart: instead of judges voting a verdict, N reviewers try to refute one claim; a majority of successful refutations stops adoption.
  • fanout-verify-synth — a stop-judge over a fan-out verification result (verify.json): decides whether every claim is verified before synthesis.
  • scripts/goal-loop.sh — the generic stop primitive (exit 0 = GOAL MET / 1 = CONTINUE / 2 = CAP REACHED); wrap this vote as a loop's --check when a step should only advance on a clean panel.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.