{"agent":"codex","input":"The spec named in the alert below fails intermittently. Set up the app as .github/workflows/check.yml does (copy config/database.yml.sample, run bin/rails db:schema:load db:migrate), then run the example in a loop with bundle exec rspec until it fails. If it never fails alone, run with --order random, record the failing seeds and use --bisect to find the examples that cause it. Find why it fails (ordering, time, randomness, shared records, memoized state or a race), fix the spec or the code, run it 50 times to show it now passes every time, and open a pull request with the before and after counts and the seeds. Never add a retry, a sleep or a pending mark.\n\nAlert: <paste the failing spec and the CI log here>","resources":[{"url":"https://github.com/your-org/your-app"}]}