rubric-judge

Run opt-in structured rubric checks through an OpenAI-compatible `/v1/decisions` decision model or `/v1/chat/completions` fallback. Use when a parent workflow or operator explicitly opts in to fast pr

SKILL.md

GitHub

rubric-judge

Opt-in structured rubric classifier for fast predicate, choice, and score checks (0 output tokens on native /v1/decisions models, with /v1/chat/completions fallback).

Gates

  • Opt-in only. If neither --base-url/--model, RUBRIC_JUDGE_BASE_URL/RUBRIC_JUDGE_MODEL, nor $XDG_CONFIG_HOME/rubric-judge/config.yaml (~/.config/rubric-judge/config.yaml) is configured, hoa decide --if-configured prints JSON with "skipped": true and a reason, then exits 0 (or exits 2 on direct required calls). Parent workflows must continue their deterministic verification without failing when this skill is unconfigured or unreachable.
  • Advisory triage, never sole acceptance. A decision model does not run commands, inspect the filesystem, or prove a claim. Always re-derive numbers and run deterministic repository gates independently.
  • Atomic criteria. Keep custom questions single-step (predicate, mutually exclusive choice, or score with 2–10 levels) and branch in code rather than asking for multi-hop reasoning.
  • Multi-head gating over bare predicate cutoffs. Native /v1/decisions backends differ in probability resolution (smooth continuous floats vs. coarse 0.01 quantized steps), and /v1/chat/completions emits hard 0/1 indicators (confidence: 1.0). Never treat a bare predicate probability as a calibrated threshold or sole admission gate: combine choice with predicate and/or score whenever a preset exposes multiple heads, and treat low-confidence or near-tied choice answers as verify/escalate gray zone.

Usage

Run the hoa CLI via uvx as shown below. In a local checkout use uv run hoa decide ..., or use hoa decide ... if installed via uv tool install. Only if a command fails, read references/troubleshooting.md.

# List bundled presets
uvx --from git+https://github.com/wxxb789/hoa hoa decide --list-presets

# Run a preset only when the operator has configured rubric-judge (exits 0 with {"skipped": true} otherwise)
uvx --from git+https://github.com/wxxb789/hoa hoa decide --if-configured --preset claim-audit --state-file state.json

# Explicit one-shot call; set the URL and model to those approved by the operator
uvx --from git+https://github.com/wxxb789/hoa hoa decide --preset pr-feedback-triage \
  --base-url "$DECISION_BASE_URL" \
  --model "$DECISION_MODEL" \
  --api decisions \
  --state '{"finding":"...", "evidence":"...", "candidate":"..."}'

Bundled Presets

Preset Questions (type) Primary parent / use case
claim-audit verdict (choice), action_required (predicate), risk_score (score) delegated-work-acceptance, report-claim-audit, hermes-ops-claim-verification
ci-triage symptom (choice), root_cause_proven (predicate), triage_priority (score) CI / test / scheduled-job failure log triage
tool-risk tier (choice), out_of_scope (predicate), blast_radius (score) PreToolUse / permission hook shadow-mode risk classification
skill-review bucket (choice: change/verify/consider), has_direct_contradiction (predicate) hoa-skill-review intake and candidate grading
memory-curation durability (choice), relationship (choice) distill-memory pre-write deduplication and noise filtering
pr-feedback-triage resolution (choice: resolved_root_cause/symptom_patch/unaddressed/regression_introduced) review-revision-candidates, ce-resolve-pr-feedback
citation-entailment entailment (choice: strictly_entailed/temporal_or_scope_drift/unsupported_extrapolation/insufficient_evidence) evidence-boundary-discipline, official-document-verification
model-escalation route (choice: stay_fast_worker/escalate_single_reviewer/escalate_dual_audit) gdd review tier routing
spec-readiness readiness (choice: ready_to_dispatch/missing_acceptance_seam/unbounded_scope) spec-convergence, define-goal pre-dispatch gate

Configuration

See references/configuration.md. After the skill-specific lookup, unset keys fall back to GHC_DECISIONS_* (legacy alias) then EVALS_* environment variables.

Key Flag Environment variable Default
base_url --base-url RUBRIC_JUDGE_BASE_URL none (opt-in; skips under --if-configured)
model --model RUBRIC_JUDGE_MODEL none (opt-in; skips under --if-configured)
api --api RUBRIC_JUDGE_API decisions (decisions or chat-completions)
effort --effort RUBRIC_JUDGE_EFFORT low (used by chat-completions)
api_key — RUBRIC_JUDGE_API_KEY dummy

Additional resources