# Policy Engine Host Template This service hosts the Policy Engine APIs and background workers introduced in **Policy Engine v2**. The project currently ships a minimal bootstrap that validates configuration, registers Authority clients, and exposes readiness/health endpoints. Future tasks will extend it with compilation, evaluation, and persistence features. ## Compliance Checklist - [x] Configuration loads from `policy-engine.yaml`/environment variables and validates on startup. - [x] Authority client scaffolding enforces `policy:*` + `effective:write` scopes and respects back-channel timeouts. - [x] Resource server authentication requires Policy Engine scopes with tenant-aware policies. - [x] Health and readiness endpoints exist for platform probes. - [x] Deterministic policy evaluation pipeline implemented (POLICY-ENGINE-20-002). - [x] PostgreSQL materialisation writers implemented (POLICY-ENGINE-20-004). - [x] Observability (metrics/traces/logs) completed (POLICY-ENGINE-20-007). - [x] Comprehensive test suites and perf baselines established (POLICY-ENGINE-20-008).