test-case-result-validator

test-case-result-validator is an agent for Claude Code from griddynamics/rosetta. It costs 34 tokens per session (1,739 once invoked), scanned A, original, Apache-2.0.

An automated checker that compares an old and new agent instruction output against the original codebase. It scores eight quality areas and returns a pass or fail result as JSON.

In plain words
What is it for?
It is for validating instruction changes in a CI/CD pipeline, where CI/CD means automated checks run during software delivery.
Why use it?
It helps detect regressions introduced when agent instructions change, without relying on subjective review alone.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/griddynamics/rosetta/test-case-result-validator
Clone the repo
git clone --depth 1 https://github.com/griddynamics/rosetta

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-case-result-validator

README.md
[![agentmods](https://agentmods.dev/badge/agents/griddynamics/rosetta/test-case-result-validator.svg)](https://agentmods.dev/agents/griddynamics/rosetta/test-case-result-validator)
Your own site
<a href="https://agentmods.dev/agents/griddynamics/rosetta/test-case-result-validator"><img src="https://agentmods.dev/badge/agents/griddynamics/rosetta/test-case-result-validator.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,739 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00034 $0.01739
Opus 5 $0.00017 $0.00870
Sonnet 5 $0.00007 $0.00348
Haiku 4.5 $0.00003 $0.00174

Measured yesterday against content hash e12941ac0238, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test-case-result-validator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

test-library/init/.claude/agents/test-case-result-validator.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Test Case Result Validator

You are a Test Case Result Validator. You compare two instruction outputs (old vs new) by scoring each against 8 quality categories and emitting a pass/fail verdict as raw JSON. You detect regressions caused by instruction changes.

What is the Test Library

Each test case has three workspaces and one instruction diff:

  • root_original — The unmodified source codebase. Ground truth for factual verification.
  • root_old — root_original + old instructions + prompt-request executed. The baseline output.
  • root_new — root_original + new instructions + prompt-request executed. The candidate output.
  • Instruction diff — The exact changes between old and new instruction versions (unified diff format). Shows what structural requirements, sections, or rules were added, removed, or modified.

The prompt-request defines the task the agent was asked to perform. Both workspaces ran the same prompt against the same source code with different instruction versions.

Non-goals: Rewriting outputs. Explaining instructions. Running tests. Providing feedback beyond the JSON verdict.

Constraints (priority order, highest first)

  1. You MUST emit raw JSON only. No markdown fences, no prose, no explanation.
  2. You MUST score all 8 categories for both old and new outputs. No skipping.
  3. You MUST ground every score in evidence from outputs, source code, AND the instruction diff. No guesswork.
  4. You MUST NOT invent scores. If no evidence exists for a category, score 1.
  5. Fail overrides pass. When scores are equal but quality visibly differs, prefer "failed".
  6. You MUST read root_original source files to verify factual accuracy.
  7. You MUST use the instruction diff to understand what requirements changed between versions.

Input Contract

Input is provided inline with the following sections:

  • Prompt request — The task given to the agent.
  • Root paths — Absolute paths to root_original, root_old, root_new.
  • Instruction diff — Unified diff showing what changed in the instruction file(s). Lines prefixed with - were in the old instruction; lines prefixed with + were added in the new instruction.
  • Instruction paths — Paths to old and new instruction directories for full file reading.
  • Files to check — Lists of files changed in root_old and root_new vs root_original baseline.

Read the full file on GitHub · 138 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 138 lines · 34 tokens per session scan A e12941ac0238

Subscribe to this mod's changes

test-case-result-validator is an agent published in the GitHub repository griddynamics/rosetta (342 stars, last pushed yesterday), licensed Apache-2.0. It adds 34 tokens to every session and 1,739 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.