review_decision
Prepare and record a decision review: inspect claims and revisions, review changed files and provenance, then accept, reaffirm, or retire with a valid token.
Instructions
Prepare a decision review: returns the claim and any operative accepted revision, provenance, the latest inspection and history event (notes shortened), changed files with hunk and line counts and anchor commits since the latest valid inspection for both sets of anchors, and a reviewToken. Request the diff (optionally for specific diffFiles), source previews or full history with include; the token is unchanged. For accepted-guidance inspection use inspectionScope operative on both prepare and inspect; pending proposals remain unassessed. Default all scope covers both revisions. After source inspection, record inspect with inspector, note and token to report no contradiction found without human acceptance. For human review, prepare with all scope, then record accept, reaffirm, or retire with its 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dir": "<dir>",
"id": "<id>"
},
"name": "review_decision"
}
}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. Inspect records an agent assessment without approval; accept, reaffirm and retire require an authorized review. | prepare |
| include | No | For prepare only: diff returns the bounded diff since the latest valid inspection, files returns source previews, history returns all review events and the latest two inspections. Omit for a compact preparation. | |
| diffFrom | No | For prepare only: lastReview previews changes since the latest inspection still valid for this record and scope (default); capture previews the full history since the evidence baseline. | lastReview |
| reviewer | No | Identity of the actual reviewer; required for a verdict. Never invent one. | |
| diffFiles | No | For prepare with include diff: limit the diff to these changed files. | |
| inspector | No | Actual agent or person performing inspection; required for inspect. Does not claim human approval. | |
| reviewToken | No | Token from the prepared review; rejects stale record or code revisions | |
| inspectionScope | No | For prepare/inspect only: all covers the full record and both anchor sets (default); operative covers only an active accepted revision, leaving a pending draft unassessed. Use the same scope when submitting its token. | all |