review_decision
Prepare and record accept, reaffirm, or retire verdicts for stored decisions, returning record history, provenance, changes, and a review token to validate authorized reviews.
Instructions
Prepare a decision review: returns the full record and history, any operative accepted revision, provenance, changes and previews for both sets of anchors, and a reviewToken. Then record accept, reaffirm, or retire with that token, the authorized reviewer, and a reason. Acceptance replaces the operative revision; retirement withdraws the entire record including its proposal. Acceptance requires owner, source, readable Git HEAD, and committed anchor changes. Changed records or code invalidate the token. Identities and approvals are recorded assertions for normal PR review, not authenticated proof.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Decision id from get_context or save_decision | |
| dir | Yes | Absolute path to the project root directory | |
| note | No | Review rationale; required for a verdict. Cite evidence for the decision. | |
| action | No | Prepare is read-only. Other actions record an explicitly authorized review. | prepare |
| reviewer | No | Identity of the actual reviewer; required for a verdict. Never invent one. | |
| reviewToken | No | Token from the prepared review; rejects stale record or code revisions |