close_programme
Close a research programme by marking it completed or abandoned, enforcing that all hypotheses are concluded before completion.
Instructions
Close a programme by setting its status to completed or abandoned.
For status="completed": rejects if any hypothesis is still under_test — the agent must call conclude_hypothesis first. Auto-marks proposed → abandoned (no effort was expended).
For status="abandoned": auto-marks all unconcluded hypotheses as abandoned (the whole programme is being abandoned).
Enforcement: state machine — rejects if programme is not active. Enforcement: commitment 1 — the loop is the unit (no closing with unconcluded hypotheses when completing).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | completed | abandoned — 'completed' requires all hypotheses concluded; 'abandoned' sweeps the rest. | completed |
| programme_id | Yes | ID of the target research programme. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | ||
| archived | No | ||
| auto_marked | No | ||
| programme_id | No | ||
| archive_error | No | ||
| trials_auto_marked | No |