scripts/check-architecture.py reads architecture.json (layers L0..L4, adapter edges, forbidden crates in pure layers, source patterns) and architecture-baseline.json (3 layer violations, 329 oversize files, 65 ratchets that may only fall). Wired into scripts/check-local.sh --product with 18 negative/positive self-tests. New files only; no engine or gateway code touched.