run criterion alignment
run_criterion_alignmentCalibrate a criterion by re-judging human-labeled traces and measuring agreement (TPR/TNR, kappa) to confirm it's trustworthy enough to gate on. Billable.
Instructions
Calibrate a criterion by re-judging every in-scope human-labeled trace and measuring agreement (TPR/TNR with Wilson intervals, Cohen's kappa), which is what earns a judge the trust needed to gate on it. POST /v1/criteria/{id}/align (API-key scope: evals:write). SPENDS MONEY: this starts billable work on the workspace wallet. Returns: Small sets (<= 50 labels) run synchronously and return the report: { scope_tag, scope_family, tag_breakdown: [{ tag, n }], mixed_population, excluded_other_cause, unattributed_fails, metrics: { n, tpr, tpr_ci, tnr, tnr_ci, kappa }, tier, thin_alignment_set, skipped, holdout: { tune_n, report_n }|null, one_class_note, disagreements: [{ request_id, judge_verdict, human_verdict }] }. Larger sets return { queued: true, total_labels } and the report is built in the background over the following minutes (poll GET /v1/criteria/{id}/alignment). Notes: MONEY: spends the wallet like any judging (one judge call per label; a new run is new spend). OWNER/ADMIN only (403). 400 when fewer than 30 in-scope labels exist (message says how many you have and how to label more), when a run is already in progress ("An alignment run is already in progress for this criterion."), or when fewer than 30 labels could actually be judged. 404 "Criterion not found". Route maxDuration is 300s.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Criterion id. |