{"agent":"claude","input":"Add input validation to the blog app in this Koa repository. Read blog/app.js, blog/lib/render.js, blog/test.js, every template under blog/views, the root package.json, .eslintrc.yml and the body-parsing example first. Validate the POST /post body: title and body must be non-empty strings after trimming, with a length cap you propose, arrays and objects are rejected, and only those two fields are stored. Validate the :id route parameter as a non-negative integer within the posts array and answer 404 otherwise. On a bad body, re-render the form with the errors and status 400, or answer JSON errors for a JSON request. Add a test for each rule to blog/test.js, run npm test and npm run lint, and open a pull request with the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}