{"agent":"claude","input":"Add rate limiting to this ASP.NET Core minimal API. Read global.json, Directory.Build.props, Directory.Packages.props, src/Web/Program.cs, src/Web/DependencyInjection.cs, src/Web/Infrastructure/WebApplicationExtensions.cs, src/Web/Infrastructure/IEndpointGroup.cs, every file under src/Web/Endpoints, src/ServiceDefaults/Extensions.cs, src/Web/appsettings.json and the functional test infrastructure under tests/Application.FunctionalTests first, and confirm no limiter is configured today. Use the framework's built-in rate limiter without adding a package. Define a fixed-window policy keyed on the client address for the anonymous identity endpoints and a sliding-window policy keyed on the user name, falling back to the address, for every other endpoint group, with limits read from an appsettings section through an options class. Reject with 429, a Retry-After header and a problem-details body. Apply the general policy where endpoint groups are discovered so new groups inherit it, override the Users group with the identity policy, and leave the health endpoints unlimited. Keep the template's conditional regions valid. Add functional tests that drive both policies over HTTP through the existing WebApplicationFactory. In your sandbox run dotnet build and dotnet test for the functional and unit test projects and open a pull request that lists the files changed, the two policies and their defaults, and the command output.","resources":[{"url":"https://github.com/your-org/your-app"}]}