What problem does it solve? Authoring Rego rules for Fianu controls requires knowing the exact v1 syntax, the input.detail.* to data.* mapping convention, and which evaluation pattern fits a given policy requirement; mistakes silently fail at evaluation time. ## Core Features & Use Cases - v1 Syntax Enforcement: Every rule starts with package rule and import rego.v1, using the if keyword and every quantifier. - Five Canonical Patterns: Threshold check, score comparison, presence check, freshness check, and multi-metric rules with full code in references/patterns.md. - Schema Mapping Guidance: Maps evidence plugin fields to input.detail.* paths and policy template keys to data.* paths so the rule and template stay aligned. - Use Case: When building a container-scan control that fails builds with too many critical vulnerabilities, pick the threshold pattern, bind policy maxima from data.vulnerabilities, and count CRITICAL ratings in input.detail.vulnerabilities. ## Quick Start Write a Fianu Rego rule that passes only when a SAST scan is less than 7 days old and critical vulnerabilities are below the policy maximum.