{"agent":"claude","input":"Add idempotency keys to the write routes of this Fiber v3 app. Read go.mod, app.go, handlers/handlers.go, database/database.go, models/user.go, static/public/js/app.js, static/public/index.html, Makefile, Dockerfile, .golangci.yml and .github/workflows/test.yml and lint.yml first, and read the idempotency middleware source in the Fiber module cache at the pinned version. Extract a newApp function from main, mount idempotency.New on the /api/v1 group after recover and logger with Lifetime from a new -idempotency-ttl flag and a KeyHeaderValidate that answers 400 through fiber.NewError. Make app.js send a crypto.randomUUID() X-Idempotency-Key on each POST. Add app_test.go using app.Test for a repeated key, two different keys, no header, a short key and a GET with a key. Explain in the README that the in-memory storage and lock are per process and what prefork means for that. Run go test ./... -race and golangci-lint with the repository config, then open a pull request that quotes the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}