Skip to content
Back to skills

Prediction Table Contracts

ASecurity

Validate agreement-on-the-line prediction tables while separating estimator inputs from evaluation-only OOD labels.

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

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Prediction Table Contracts?

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

Security grade badge for Prediction Table Contracts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-prediction-table-contracts/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-prediction-table-contracts)

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

SKILL.md
---
name: prediction_table_contracts
description: Validate agreement-on-the-line prediction tables while separating estimator inputs from evaluation-only OOD labels.
---

# Prediction Table Contracts

Use this skill when preparing inputs for agreement-on-the-line or ALine-D recovery experiments. Do not use it for probability-score methods that require softmax confidences rather than class predictions.

## Inputs

- JSON table with `models`, `id_labels`, `id_predictions`, `ood_predictions`, and optional `ood_labels`.
- At least three models are required for ALine-D.

## Outputs

- Normalized JSON table with deterministic model ordering.
- Metadata for model/sample counts and a flag showing OOD labels are evaluation-only.

## Workflow

1. Validate unique model identifiers and consistent prediction lengths.
2. Require every model to have ID and OOD class predictions.
3. Store optional OOD labels under `evaluation_only`.
4. Reject attempts to treat OOD labels as estimator-visible fields.

## Validation

Run `python tests/test_prediction_table_contracts.py` from this skill directory.

## Limitations

This skill validates table structure only; it does not compute agreement statistics or accuracy predictions.

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…