Skip to content
Back to skills

Accuracy Pair Protocol

ASecurity

Validate paired ID/OOD accuracy records before fitting accuracy-on-the-line calibration experiments.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
toolspython

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill accuracy_pair_protocol --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Accuracy Pair Protocol?

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

Security grade badge for Accuracy Pair Protocol
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-accuracy-pair-protocol/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-accuracy-pair-protocol)

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

SKILL.md
---
name: accuracy_pair_protocol
description: Validate paired ID/OOD accuracy records before fitting accuracy-on-the-line calibration experiments.
---

# Accuracy Pair Protocol

Use this skill when a recovery or benchmark script needs to build the paired in-distribution and out-of-distribution accuracy panel used by Accuracy on the Line. Do not use it to fit the line or decide whether the proxy passes; it only owns record validation and deterministic ordering.

## Inputs

- A JSON list of objects with `model_id`, `id_accuracy`, and `ood_accuracy`.
- Optional metadata fields such as architecture, training duration, or shift name.

## Outputs

- A JSON object containing validated `records`, `count`, `id_range`, `ood_range`, and `provenance`.
- Validation errors for missing fields, duplicate model ids, nonnumeric accuracies, or values outside `[0, 1]`.

## Workflow

1. Parse records from JSON or receive them as Python dictionaries.
2. Require one paired ID and OOD accuracy for every model id.
3. Enforce numeric ranges and unique model ids.
4. Sort records by `model_id` so downstream line fitting is reproducible.
5. Preserve optional metadata without adding predictions or pass/fail decisions.

## Validation

Run `python scripts/accuracy_pairs.py --input tests/fixtures/valid_pairs.json` or validate the tree with the Distiller `validate_skill_tree.py --run-tests` command.

## Limitations

This skill does not download datasets, train models, fit the calibration line, or evaluate a recovery target. Synthetic records must be labeled by the caller as proxy evidence.

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…