{"agent":"claude","input":"Add health check endpoints to this CodeIgniter 4 app. Read composer.json, phpunit.dist.xml, app/Config/Routes.php, app/Config/Routing.php, app/Config/Filters.php, app/Config/Database.php, app/Config/Cache.php, app/Config/Format.php, app/Controllers/BaseController.php, app/Controllers/Home.php, tests/unit/HealthTest.php and tests/README.md first. Add app/Controllers/Health.php using CodeIgniter\\API\\ResponseTrait with index() answering GET /health with {status: ok} and ready() answering GET /health/ready with 200 when every check passes and 503 listing the failing names otherwise. Put the checks under app/Libraries/Health as small classes with name() and check(), listed in a new app/Config/Health.php: WRITEPATH writable, a cache save and get, and a database getVersion only when the default group names a database. Declare both routes in app/Config/Routes.php and keep them out of the pagecache filter. Write tests/feature/HealthTest.php with FeatureTestTrait asserting the 200 JSON for /health and, with a failing check injected through Factories, the 503 for /health/ready. Run composer install and vendor/bin/phpunit, fix what fails, and open a pull request that notes the existing tests/unit/HealthTest.php is a different kind of check.","resources":[{"url":"https://github.com/your-org/your-app"}]}