Gate an implementation plan
validate_planReview implementation plans and specs before coding to catch design flaws early. Returns a binary verdict covering completeness, feasibility, performance, security, and missing considerations.
Instructions
The gate for PLANS, designs and specs — run BEFORE any code is written, the cheapest place to catch a bad design. Returns the same binary verdict shape as validate_ai_output, with findings on completeness, feasibility, performance and scalability implications, security risks and missing considerations (e.g. it rejects a plan that polls an API every 100ms per client, with the request-volume math). Read-only: nothing is executed or stored beyond the verdict. Use validate_ai_output for the code that follows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | The implementation plan, design or spec to validate, as plain text or markdown — e.g. a numbered migration plan or an architecture sketch. | |
| context | No | Optional constraints the review should weigh, e.g. {"system": "payments API", "scale": "1M users", "constraints": "PostgreSQL only"}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| score | Yes | Combined score 0-100 (gates fused with the model review) | |
| valid | Yes | The binary verdict: true = approved, false = rejected | |
| issues | Yes | Severity-ranked findings, each 'severity|category|detail' with the reasoning | |
| provider | No | Model that ran the deep review, or 'protection-gates-only' | |
| confidence | No | score / 100 | |
| protection | No | Deterministic gate result. A veto here is final — the model review cannot override it. | |
| suggestions | No | Concrete fixes to reach approval |