{"agent":"claude","input":"Fix GitHub issue #ISSUE in this Rails repository. Read the issue and its comments first. Start from .ruby-version, the Gemfile and config/database.yml.sample, then find the controller the report names, app/controllers/stories_controller.rb or app/controllers/comments_controller.rb, and read its before_action chain and private helpers before changing an action. Add a request spec case under spec/requests that reproduces the reported behaviour with the existing factories and sign_in helper, confirm it fails, then fix the code until bundle exec rspec passes after ./bin/rails db:schema:load db:migrate, as .github/workflows/check.yml runs it, and bundle exec standardrb passes on the files you changed. Do not change .ruby-version, the Gemfile.lock or any workflow file. Open a pull request whose body starts with Closes #ISSUE, explains the cause, lists the files and quotes the rspec summary.","resources":[{"url":"https://github.com/your-org/your-app"}]}