create_evaluation_contract
Create a versioned evaluation contract for a research programme, pre-registering metrics and promotion policy while enforcing powered-policy design keys.
Instructions
Create an evaluation contract for a programme (RSI Phase 0).
Contracts are insert-only and versioned per programme: each new contract for the same programme gets version = max+1 and supersedes the previous. metrics and promotion_policy may be sent as JSON-encoded strings.
The powered-policy gate enforces presence of the design keys (sesoi_d, target_power, min_evidence_rung), not adequacy — target_power: 0.5 pre-registers fine; adequacy surfaces downstream as underpowered / power_acknowledged on the campaign, not as a mint refusal.
Enforcement: programme must exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget | No | Budget recorded on the contract; object or JSON-encoded string. | |
| metrics | Yes | Declares 'primary_metric' (+ optional 'direction': max|min, secondaries); may be JSON-encoded. | |
| holdouts | No | Held-out evaluation slices the contract declares; object or JSON-encoded. | |
| programme_id | Yes | ID of the target research programme. | |
| promotion_policy | Yes | Pre-registered promotion rule (confidence bar, safety gates); object or JSON-encoded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | ||
| version | No | ||
| contract_id | No |