Skip to content
Back to skills

Validate Scores

ASecurity

Run identical (ref, dist) through all enabled backends and report per-backend score + pairwise ULP diffs. Use to verify bit-exactness of a new SIMD path, new GPU backend, or any hot-path change.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 12, 2026
content-marketinggobackend

Security analysis

A100/100

Scanned September 23, 2026

npx -y skills add VMAFx/vmafx --skill validate-scores --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Validate Scores?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Validate Scores
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vmafx-validate-scores/badge)](https://www.skillsdirectory.com/skills/vmafx-validate-scores)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: validate-scores
description: Run identical (ref, dist) through all enabled backends and report per-backend score + pairwise ULP diffs. Use to verify bit-exactness of a new SIMD path, new GPU backend, or any hot-path change.
---
<!-- markdownlint-disable MD013 -->

# /validate-scores

## Invocation

```text
/validate-scores --ref=PATH --dist=PATH --width=W --height=H --pixfmt=420p --bitdepth=8
                 [--backends=cpu,cuda,sycl,vulkan] [--precision=17]
```

## Steps

1. Each enabled backend in `--backends`, run:
   `build/tools/vmaf --reference REF --distorted DIST --width W --height H \
    --pixel_format PIXFMT --bitdepth BD --feature psnr --feature ssim --feature
    vif \
    --feature adm --feature motion --output /tmp/<backend>.json --json
    --precision=17`
2. Parse JSON; build `(frame, feature) -> score` table per backend.
3. Each backend pair, compute:
   - max absolute diff
   - max ULP distance (via `math.frexp` + integer reinterpretation)
4. Emit report: per-feature worst case across all backend pairs.
5. Exit 0 if all pair-wise ULP ≤ 2 (bit-exact or within float reduction jitter);
   exit 1 otherwise.

## Notes

- Tolerance 2 ULPs matches SIMD-vs-scalar requirement in `docs/principles.md`.
  GPU backends (CUDA / SYCL / Vulkan) NOT bit-identical to CPU (class
  invariant) — per-feature variance budget in
  [ADR-0214](../../../docs/adr/0214-gpu-parity-ci-gate.md)
  (T6-8 GPU-parity gate) = contract for cross-device comparisons.
  Netflix golden gate = CPU-only by design.
- Higher tolerance NOT permitted without CODEOWNERS approval; backend
  divergence must be explained and justified.
- Companion skill `/cross-backend-diff` mirrors T6-8 CI gate locally.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.