Following Matt Pocock's /code-review discipline, this file defines standards enforced during automated and human review:
- No
any, no non-null!assertions: Useunknown+ Zod/runtime parsing at every untrusted boundary (Firecrawl responses, LLM outputs, CLI arguments, HTTP route inputs). - Untrusted web/repo content is data only: Never execute target repository hooks, git filters, or shell commands derived from scraped docs or candidate code.
- Immutable provenance everywhere: Every Firecrawl retrieval (
scrape,changeTracking,map,search/developer) and every verifier observation is SHA-256 hashed before verdicts are computed. - Honest labeling & fail-closed boundaries: Separate
replayfromliveruns visibly in both CLI output and Web UI. Any verifier timeout, missing API key, or unverified claim fails closed asunknownorblocked. - Single-responsibility domain modules: Domain modules under
src/never depend on Next.js UI code; the web app imports clean read/run contracts. - Red-green TDD for core logic: Every Firecrawl adapter, LLM fallback router, dead-workaround detector, and API route has automated tests covering both happy and adversarial paths.