{"agent":"claude","input":"Write tests for the Sinatra email service in src/email, which has none. Read email_server.rb, views/confirmation.erb, the Gemfile, Gemfile.lock, the Dockerfile and how src/checkout builds the request it posts first. Install the Ruby version the Dockerfile uses and the Bundler version in Gemfile.lock. Add minitest and rack-test in a test group. Before loading the app, set APP_ENV=test and set OTEL_TRACES_EXPORTER and OTEL_LOGS_EXPORTER to none; collect spans with an InMemorySpanExporter on a SimpleSpanProcessor. Replace the flagd provider with OpenFeature's InMemoryProvider in each test and set emailMemoryLeak as the case needs. Cover a valid order with the email's recipient, sender, subject and rendered order, the demo.order.id attribute and the send_email span, the padding when the flag is 2, malformed JSON and a missing order as 500s with the exception recorded. Build fixtures the way checkout serializes them. Do not change email_server.rb or the view; list anything that looks wrong as a finding. Keep the test gems out of the Docker image. Run the tests until they pass. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}