Gate completion: review a patch and verify claims
jev_gateReview a proposed patch and verify completion claims against supplied evidence, auto-accepting only when review and claims meet thresholds. Escalates unsupported or contradictory claims.
Instructions
Review a proposed patch and verify completion claims against supplied evidence in one TypeSafe Jev call. Auto only when the patch review is accepted and every claim is verified at or above auto_accept. Unsupported claims require review; confident contradictions, unknown confidence, or low confidence escalate. The request and claims are assertions to check, never proof; put supporting diff excerpts and test logs in evidence. Evidence is capped at 16 items and 200,000 characters in aggregate. Does not run tests or apply changes. Use jev_review for a patch without claims, jev_verify for claims without a patch review.
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 review 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 for the patch review. Truncated at the same cap. | |
| claims | Yes | Completion claims to check against evidence, each truncated at 2000 chars. Up to 16 per call. | |
| request | Yes | What the user asked for; this is not evidence of completion. | |
| evidence | Yes | ||
| review_at | No | Score, safe_to_apply, or per-claim confidence below this escalates. Must be <= auto_accept. Default min(0.5, auto_accept). | |
| auto_accept | No | Review and per-claim 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. |