{"agent":"claude","input":"Add CSRF protection to this Express app and open a pull request. Read package.json, server.js, config/env/all.js, app/routes/index.js, app/routes/error.js, every template under app/views that contains a form, cypress.json, test/e2e/plugins/index.js and test/e2e/integration/profile_spec.js first. In server.js enable the commented csurf middleware after the session middleware and before the routes, and the middleware that exposes req.csrfToken() as res.locals.csrftoken. Add a hidden _csrf input bound to csrftoken to the forms in app/views/benefits.html and app/views/memos.html; leave GET search forms alone. In app/routes/error.js answer an EBADCSRFTOKEN error with status 403 and the error template instead of 500. Start MongoDB, run node artifacts/db-reset.js, start the app with npm start, and run npm run test:ci so every Cypress spec passes. Add a Cypress spec that signs in, posts to /profile without the token and expects 403. Run npx jshint . as .github/workflows/lint.yml does. Send a curl POST to /memos with a signed-in session cookie and no token and keep the 403. Paste the Cypress summary, the jshint result and the curl output in the pull request. Do not change the session options, the DAOs or the tutorial pages.","resources":[{"url":"https://github.com/your-org/your-app"}]}