Review a proposed patch
jev_reviewScore a proposed diff against the original request before calling a task done. Returns rubric scores, a safe_to_apply probability, and an auto, review, or escalate action.
Instructions
Score a proposed diff against the request with TypeSafe Jev before the task is called done. Returns 0..2 rubric scores for correctness, spec match, test gap, and blast radius (the last two lower the weighted composite), a safe_to_apply probability, and an auto | review | escalate action. Auto requires safe_to_apply and min score confidence at auto_accept and the composite at composite_floor; truncated or malformed input never returns auto. Does not apply the patch or run tests. For a multi-file change, pass files instead of diff: the rubric is asked once per file in the same request and the action composes in code (auto only when every file is auto). Use jev_gate to also verify completion claims against evidence in the same call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | Proposed patch, file excerpt, or change summary (whole-change review). Truncated at 50000 chars. Provide exactly one of diff or files. | |
| files | No | Per-file review: one { path, diff } per file. The rubric is asked once per file, all in one request; the whole change is auto only when every file is auto, and the result names the limiting file and rubric. Each diff is truncated at 50000 chars; up to 16 files, and request + tests + all diffs together must stay within 200,000 chars. Provide exactly one of diff or files. | |
| tests | No | Reported test output, if any. Truncated at the same cap. | |
| request | Yes | What the user asked for; this frames the review, it is not proof of anything. | |
| review_at | No | Min score confidence or safe_to_apply below this escalates. Must be <= auto_accept. Default min(0.5, auto_accept). | |
| auto_accept | No | safe_to_apply and min score confidence at or above this may stand automatically. Default 0.8. | |
| composite_floor | No | Weighted composite at or above this is required for auto. Default 0.7. |