What problem does it solve?
The Spec Gate prevents AI from starting implementation on incomplete or inconsistent documentation by forcing specs to meet deterministic and structural requirements first.
Core Features & Use Cases
- Deterministic structural pre-check: Runs spec_precheck.py to produce a JSON baseline by verifying required sections, test IDs, error handling matrices, deep-link formatting, and more.
- LLM-ready gating checklist: Ensures the spec is actionable, prompt-ready, ambiguity-free, and ready for BUILD without silent guessing.
- Contract and parity verification hooks: Supports checks like DDL parity (via scripts) and language-constraint gating to avoid producing code that violates the documented contract.
Use this when you are about to start the BUILD stage for any implementation spec and want a hard readiness signal that the documentation is AI-executable.
Quick Start
Run the Spec Gate pre-check for your spec file and use the JSON report to fix any structural failures before asking the AI to build.