{"agent":"claude","input":"Add request id logging to this Wagtail site. Read requirements/base.txt, bakerydemo/settings/base.py, production.py, dev.py and test.py, bakerydemo/urls.py, etc/uwsgi.ini, Procfile, heroku.yml, docker-compose.yml, AGENTS.md, Makefile, ruff.toml, the tests under bakerydemo/base/tests and .github/workflows/ci.yml first. Add a middleware in bakerydemo/base that takes X-Request-ID from the request when it is present and well formed and generates a UUID otherwise, keeps it in a contextvar, sets it on the request and echoes it on the response, and a logging filter that adds it to every record. Put the filter and a request id field on the console handler and format in both base.py and production.py, place the middleware right after SecurityMiddleware, and add a uwsgi log-format that prints the header. Write tests beside the existing base tests for the echoed header, the generated id, a rejected malformed header and a log record carrying the id, using assertLogs. Run manage.py check, makemigrations --check, the test suite with the test settings and make lint-server as CI does, start the site against docker compose, request the home page with and without the header, and open a pull request that quotes the test output and two log lines.","resources":[{"url":"https://github.com/your-org/your-app"}]}