{"agent":"codex","input":"Incident: Sentry shows a burst of QueuePool limit reached errors from the API under modest load, and requests time out after 30 s. Read how the engine and its pool are configured, how a request gets and releases a session, which routes hold a session while doing other slow work such as sending email, how many worker processes run, and the last 30 commits with their diffs. If the Sentry connection is available, read the error events and the slowest transactions around the start of the burst. Find the most likely causes and write incident.md with a timeline, each suspect ranked with file and line evidence, the arithmetic of connections per process against the database limit, and the exact query, setting or test that would confirm or clear each one. Change no code.","resources":[{"url":"https://github.com/your-org/your-fastapi-app"}]}