gate_check
Evaluate multi-file changes before commit, receiving a PASS, WARN, or BLOCK verdict with detailed reasoning to prevent risky commits.
Instructions
Pre-commit safety gate. Analyzes specified changes and returns a PASS/WARN/BLOCK verdict with reasons. Use as a bounded decision aid before committing multi-file changes. BLOCK means current impact is too risky. WARN means human review recommended. PASS means low-risk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Relative file paths being changed | |
| threshold | No | Risk threshold for BLOCK verdict (0-1, default 0.5) | |
| projectRoot | Yes | Absolute path to the project root directory | |
| tsconfigPath | No | Optional tsconfig path relative to projectRoot |