update criterion
update_criterionUpdate a criterion's judge prompt, model, population scope, online monitoring, or lifecycle status. Changing prompt, model, or population voids calibration until re-alignment.
Instructions
Update a criterion's prompt, judge model, population scope, online-monitoring settings or lifecycle status; instrument changes void its calibration. PATCH /v1/criteria/{id} (API-key scope: evals:write). Returns: 200 with the updated criterion object (same shape as GET /v1/criteria/{id}) Notes: OWNER/ADMIN only (403). 404 "Criterion not found". 400 for schema failures, a unit change, or an invalid status. MONEY: enabling online monitoring spends the wallet on judge calls, capped weekly by online_cap_usd. Voided calibration means trust becomes "unmeasured" until POST /align is run again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Criterion id. | |
| name | No | Trimmed, 1..80 chars. | |
| unit | No | Accepted only if equal to the current unit; any change is refused with 400 (unit is create-only). | |
| status | No | Lifecycle. "retired" removes the criterion from online scoring and pickers. | |
| population | No | Request tag scope, max 64 chars; "" = all traffic. Changing it voids calibration. | |
| description | No | Max 500 chars; null clears. | |
| judge_model | No | Model id. Changing it voids calibration. | |
| judge_prompt | No | Trimmed, 10..4000 chars. Changing it VOIDS tpr/tnr/kappa/aligned_at and deletes stored confusion rows. | |
| online_cap_usd | No | Weekly online-judging spend ceiling in USD, 0..100000; 0 = uncapped. Money config; does not void calibration. | |
| online_enabled | No | Turn online monitoring on/off. When on, the judge scores a sample of fresh logged traffic and each judge call is billed as usage. | |
| online_percent | No | Percent of fresh in-scope traffic to judge, integer 1..100. | |
| population_family | No | Traffic-segment scope (family value from logs facets), max 32 chars; "" clears. Changing it voids calibration. |