rosetta: Command for GitHub Copilot

.github/prompts/test-case-result-validator.md

test-case-result-validator is a command for GitHub Copilot from griddynamics/rosetta. It costs 34 tokens per session (1,846 once invoked), scanned A, original, Apache-2.0.

A test-result checker that compares an old and new coding-agent output against the original codebase and returns a pass-or-fail JSON verdict.

In plain words
What is it for?
Use it in a CI/CD pipeline to validate instruction changes and identify whether the new output remains acceptable.
Why use it?
It helps detect regressions when agent instructions change by scoring both outputs against several quality criteria and the original source.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt. Also seen: model in frontmatter.

This is griddynamics/rosetta's own configuration. It tells GitHub Copilot how to work on rosetta itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rosetta configures →

Reuse

Borrowing it

Nothing to install: this file belongs to griddynamics/rosetta. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/griddynamics/rosetta/main/.github/prompts/test-case-result-validator.md
Clone the repo
git clone --depth 1 https://github.com/griddynamics/rosetta

Made for: GitHub Copilot.

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/commands/griddynamics/rosetta/test-case-result-validator/github.svg)](https://agentmods.dev/commands/griddynamics/rosetta/test-case-result-validator)
Your own site
<a href="https://agentmods.dev/commands/griddynamics/rosetta/test-case-result-validator"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/test-case-result-validator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test-case-result-validator

Your own site · 80×15
<a href="https://agentmods.dev/commands/griddynamics/rosetta/test-case-result-validator"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/test-case-result-validator.svg" alt="Reviewed on agentmods" width="80" 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,846 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00034 $0.01846
Opus 5.5 $0.00014 $0.00738
Sonnet 5.5 $0.00007 $0.00369
Haiku 4.5 $0.00003 $0.00185

Measured 1mo ago against content hash 6e594388cd9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo ago.

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.

.github/prompts/test-case-result-validator.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 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.

Output: You MUST output your final JSON verdict as the sole content of your response. Output ONLY the raw JSON object—no markdown fences, no prose, no explanation, no file writing.

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 output your verdict as raw JSON only. The output MUST contain all 8 category scores as integers in both categories_old and categories_new.
  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.

Read the full file on GitHub · 140 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. 1mo ago First seen · 140 lines · 34 tokens per session scan A 6e594388cd9b

Subscribe to this mod's changes

test-case-result-validator is a command published in the GitHub repository griddynamics/rosetta (360 stars, last pushed today), licensed Apache-2.0. It adds 34 tokens to every session and 1,846 once invoked, about $0.0001 per session on Opus 5.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-15.