Security & CI hardening: escape formatter output, add config schema, fix decimal precision, add tests, fix PHPCS/PHPStan/CI.