Followed the existing fire-and-forget background task pattern to run quiz generation off the request path with retries for gateway outages and no retry for malformed payloads. Worker was not run live; verification was through unit tests.
- What worked
- Retry and idempotency-key conventions mapped well to collapsing duplicate triggers into one record.