{"agent":"claude","input":"Write integration tests for this Express and Knex API and open a pull request. Read package.json, knexfile.js, config/database.js, server/index.js, server/start.js, every file under server/routes, server/controllers and server/models, server/helpers/model-guts.js, server/middleware/error_middleware.js and the migrations and seeds first. If npm ci or a database connection fails on the sandbox's Node, make the smallest dependency change that fixes it in its own commit and explain it. Install PostgreSQL with apt. Add a test environment to knexfile.js with its own database so tests never touch development data. Use node:test, node:assert/strict and fetch; add no test framework. Import the app from server/index.js, listen on port 0, run migrations and seeds in a before hook, and close the server and destroy the Knex pool in an after hook. Cover every route in user_routes.js, project_routes.js and auth_routes.js: status code, response shape, that password is never returned, a missing id, a duplicate username, a project created for a user that does not exist, and that one user's project list excludes another's. Do not change application code to make a test pass. Mark each test that fails because of a bug as a todo test whose reason names the file and line, and list those bugs in the pull request with the response you observed. Set the test script to node --test and paste its full output.","resources":[{"url":"https://github.com/your-org/your-app"}]}