{"agent":"codex","input":"Add structured JSON logging with a request id to this Flask app and open a pull request. Read requirements.txt, config.py, microblog.py, app/__init__.py, app/errors/handlers.py, app/api/errors.py, app/tasks.py, boot.sh, Procfile, Dockerfile and tests.py first. Add python-json-logger pinned in requirements.txt. Add app/logging.py with a JSON formatter emitting asctime, levelname, name, message, pathname and lineno, and a logging filter that adds request_id, method, path and remote_addr only when a request context exists. Add a LOG_FORMAT setting to config.py, json or text, default text, and apply it to the stream and file handlers; move the handler setup into a configure_logging(app) function with unchanged behaviour. In create_app add a before_request that sets g.request_id from X-Request-ID or uuid4().hex and an after_request that echoes it. Add %({x-request-id}o)s to the gunicorn access log format in boot.sh. Add a LoggingCase to tests.py that captures a JSON line for a request to /auth/login with a supplied id and asserts request_id and path, and that a generated id is echoed. Run python -m unittest tests, then run the app with LOG_TO_STDOUT=1 and LOG_FORMAT=json, request the index and a missing page, and paste the JSON lines and the test output in the pull request. Do not change the SMTP handler or any route.","resources":[{"url":"https://github.com/your-org/your-app"}]}