{"agent":"claude","input":"Enable retries safely on the 2nd gen event-driven Cloud Functions in this repository. Read every functions index file and its package.json first, and classify each event handler as safe to repeat, unsafe to repeat, or already swallowing its own errors. For safe handlers add retry: true to the options object and a guard that logs and returns when the event's time is older than a limit you choose per function. For unsafe handlers add an idempotency marker keyed on the event id, written transactionally, before enabling retries. Leave HTTP, callable and scheduled functions alone and say why. Add Jest tests with firebase-functions-test that call each changed handler twice with the same event and once with a stale event, run lint and the tests, and open a pull request with the handler table and the command output.","resources":[{"url":"https://github.com/your-org/your-app"}]}