Write Review
write_reviewRecord a governance review decision for an artefact, choosing approved, rejected, needs_changes, abstained, or needs_human, with rationale and required changes.
Instructions
Write a REVIEW file (governance-layer decision, per ADR-0017/0025).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Additional Markdown body after the frontmatter. | |
| decision | Yes | Review decision. One of: ``approved`` — artefact is accepted; ``rejected`` — artefact is rejected (cannot proceed); ``needs_changes`` — must be revised (requires ``required_changes``); ``abstained`` — reviewer recuses; ``needs_human`` — reviewer escalates to human (ADR-0025, v1.1). The review stays pending until ``mark_human_approved`` is called to close the loop. | |
| rationale | No | Free-text rationale for the decision. Recommended for all non-``approved`` decisions. | |
| subject_ref | Yes | Reference to the artefact under review — file path for task/report/code_change; fcop.json diff range for role_switch. | |
| subject_type | Yes | What is being reviewed. One of ``task`` / ``report`` / ``role_switch`` / ``code_change``. | |
| reviewer_role | Yes | Role code of the reviewer (must have ``review_decision`` capability; typically ``layer: governance`` or ``layer: admin``). | |
| subject_short | No | Override the ``-on-{slug}`` segment of the filename. Auto-derived from ``subject_ref`` when omitted. | |
| reviewer_agent | No | Optional agent/session identifier on top of the role code. | |
| required_changes | No | Newline- or comma-separated list of required changes. Mandatory when ``decision=needs_changes``. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |