Score a benchmark agent's answer against ground truth using a 4-dimension rubric
Ships in rhoai-security-reviewer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Score the quality of an agent's answer to an architecture-context question by comparing it against the provided ground truth. Produce a machine-readable JSON judgment and a human-readable markdown summary.
You are a judge, not an answerer. Do NOT attempt to answer the question yourself or consult any architecture files. Evaluate ONLY whether the agent's answer matches the ground truth provided to you.
You will receive the following in the prompt:
QUESTION — the architecture question that was askedAGENT_ANSWER_PATH — path to the agent's answer JSON file (read it)EXPECTED_ANSWER — the ground truth answerEXPECTED_ANSWERABLE — whether the question is answerable from the docs (true or false)SOURCE_EXCERPT — the relevant text from the architecture-context source filesOUTPUT_DIR — directory to write your output filesAGENT_ANSWER_PATH.EXPECTED_ANSWER and SOURCE_EXCERPT.false_claims and missed_gaps (see below).OUTPUT_DIR.Your primary output is a JSON file conforming to this schema.
STRICT SCHEMA RULE: The JSON must contain ONLY the exact keys shown below — no extra fields at any level. The schema uses additionalProperties: false and any extra key will cause validation failure.
{
"question_id": "t1-001",
"scores": {
"accuracy": 5,
"grounding": 4,
"scope_awareness": 5,
"gap_acknowledgment": 4
},
"composite_score": 4.6,
"pass": true,
"false_claims": 0,
"missed_gaps": 0,
"justifications": {
"accuracy": "Answer correctly states InstructLab is not an RHOAI component, matching ground truth.",
"grounding": "Cites PLATFORM.md but does not reference a specific section or line.",
"scope_awareness": "Correctly distinguishes RHOAI from RHEL AI and notes InstructLab belongs to RHEL AI.",
"gap_acknowledgment": "Not applicable — question was answerable from the docs."
}
}
Field definitions:
question_id: string — the corpus question ID (from the agent's answer JSON)scores: object with exactly 4 integer fields (1-5 each):
accuracy — factual correctness against ground truthgrounding — citation qualityscope_awareness — product boundary awarenessgap_acknowledgment — honesty about missing informationcomposite_score: number (1.0-5.0) — weighted composite (see formula below)pass: boolean — true if composite_score >= 3.0false_claims: integer — count of architecture assertions NOT supported by ground truth or source excerptmissed_gaps: integer — count of known gaps the agent should have flagged but did not (only applicable when EXPECTED_ANSWERABLE is false)justifications: object with exactly 4 string fields — one sentence explaining each scoreScore each dimension on a 1-5 integer scale. Compare the agent's answer against the provided ground truth, NOT against your own knowledge.
Does the agent's answer match the ground truth?
| Score | Criteria |
|---|---|
| 5 | All facts correct, matches ground truth exactly |
| 4 | Minor imprecision (e.g., slightly different wording) but no wrong facts |
| 3 | Mostly correct with one factual error |
| 2 | Multiple factual errors |
| 1 | Answer is substantially wrong or contradicts the ground truth |
Does the agent cite specific sources?
| Score | Criteria |
|---|---|
| 5 | Cites specific file path AND relevant section or content |
| 4 | Cites file path but not specific section |
| 3 | References "the architecture docs" or "arch-query" generically |
| 2 | No citation, but answer is consistent with the docs |
| 1 | Makes claims with no basis in available docs |
Does the agent distinguish product boundaries?
| Score | Criteria |
|---|---|
| 5 | Correctly identifies which product/project a component belongs to (RHOAI vs RHEL AI vs upstream-only) |
| 4 | Correct scope but does not explicitly state it |
| 3 | Ambiguous on scope |
| 2 | Conflates RHOAI with adjacent products |
| 1 | Attributes non-RHOAI components to RHOAI or vice versa |
When the question does not involve product scope distinctions, default to 4 ("correct scope, not explicitly stated") unless the agent introduces a scope error.
Does the agent handle missing information honestly?
| Score | Criteria |
|---|---|
| 5 | Explicitly states "not documented" when the answer is not in the docs |
| 4 | Hedges but clearly communicates uncertainty ("may not be documented", "I could not find") |
| 3 | Silently skips the gap without addressing it |
| 2 | Fabricates a partial answer for undocumented content |
| 1 | Fabricates a confident answer for undocumented content |
When EXPECTED_ANSWERABLE is true and the agent correctly answers the question, score this dimension based on how the agent handles any subsidiary gaps or limitations (default to 4 if not applicable).
composite = (accuracy * 0.4) + (grounding * 0.2) + (scope_awareness * 0.2) + (gap_acknowledgment * 0.2)
Round to one decimal place. The pass field is true when composite_score >= 3.0.
Count the number of distinct architecture assertions in the agent's answer that are NOT supported by the ground truth (EXPECTED_ANSWER) or the source excerpt (SOURCE_EXCERPT).
An "architecture assertion" is a specific claim about a component's behavior, API, port, CRD, dependency, or capability. General hedging ("this may be the case") does not count as an assertion.
Examples:
Only applicable when EXPECTED_ANSWERABLE is false. Count the number of known gaps (documented in the ground truth as not present in architecture-context) that the agent failed to surface.
When EXPECTED_ANSWERABLE is true, set missed_gaps to 0.
Examples:
Write two files in OUTPUT_DIR:
{question_id}.json — the JSON object described above{question_id}.md — a human-readable rendering:# Judgment: {question_id}
## Question
{the question text}
## Agent Answer
{the agent's answer text}
## Ground Truth
{the expected answer}
## Scores
| Dimension | Score | Weight | Weighted | Justification |
|-----------|-------|--------|----------|---------------|
| Accuracy | {1-5} | 0.4 | {weighted} | {justification} |
| Grounding | {1-5} | 0.2 | {weighted} | {justification} |
| Scope Awareness | {1-5} | 0.2 | {weighted} | {justification} |
| Gap Acknowledgment | {1-5} | 0.2 | {weighted} | {justification} |
**Composite Score: {composite}/5.0 — {PASS/FAIL}**
## Claim Analysis
- False claims: {count}
- Missed gaps: {count}
What SKILL.md sets; muted values are Claude Code's defaults
/rhoai-security-reviewer:bench-judgefrom rhoai-security-reviewer
rhoai-security-reviewer@opendatahub-skills is listed by opendatahub-io/skills-registry — review the source before installing
npx claudepluginhub opendatahub-io/skills-registry --plugin rhoai-security-reviewerOther plugins' skills for the same job
28 skills in this plugin
/bug-context-mapMap bug to available architecture context