ScopeCheck is a change-control workspace. It checks client requests against a reviewed agreement and keeps the original message, exact agreement quotes, decisions, and written approvals together.
Use Node.js 22.13 or later and Redis 6.2 or later.
npm ci
cp .env.example .env.local
openssl rand -base64 32
docker run --rm --name scopecheck-redis -p 127.0.0.1:6379:6379 \
-v scopecheck-redis:/data redis:7.4-alpine redis-server --appendonly yesSet AUTH_SECRET in .env.local to the generated value. Set REDIS_URL if Redis uses a different address. Configure at least one sign-in method.
- Google. Create an OAuth web client. Add
http://localhost:3000/api/auth/callback/googleas an authorized redirect URI. SetAUTH_GOOGLE_IDandAUTH_GOOGLE_SECRET. ScopeCheck accepts verified Gmail and Google Workspace addresses. - Email link. Set
AUTH_RESEND_KEYandAUTH_EMAIL_FROMto a Resend key and a sender on a verified domain. Each link expires after 15 minutes and works once.
Start the app in a separate terminal with npm run dev. Open ScopeCheck. Use the same address for AUTH_URL and in the browser. If you signed up by email, sign in and use Account → Connect Google to add Google to the same account.
- Create a project. Upload a PDF with selectable text, upload a UTF-8 TXT file, or paste the agreement.
- Review the extracted clauses and save the agreement version.
- Paste the client message or import a TXT excerpt. Set its channel and date.
- Check the request and review the cited clauses. Record In scope, Out of scope, or Unclear.
- For an out-of-scope decision, prepare a change request with the time impact and price. Share the draft through your usual channel. Record the written approval or decline.
Use Change log to find requests and Export evidence to download a record. Use Data and examples to open fictional projects or download and restore backups.
Redis stores project records and sign-in sessions. Each account has a private workspace. The browser uses an HTTP-only cookie to identify the session.
The app can be installed from a supported browser. On iOS, use Safari’s Share → Add to Home Screen. Project access and updates require a connection. When the app is offline, it shows a reconnect screen.
To bring projects from the old version, open that version in the original browser and download each project backup. Sign in to the new app and restore the files in Data and examples. Backups contain readable project data. Store them somewhere private.
The built-in checker looks for explicit scope language. A person confirms every decision. To enable optional AI checks, set OPENAI_API_KEY. ScopeCheck sends the current request and reviewed clauses to OpenAI only when the user selects the AI option for that request.
Run npm test and npm run build. Set SCOPE_CHECK_TEST_REDIS_URL to a test instance to include Redis integration tests. Run npm start to serve the production build.
See the release guide for deployment and verification steps.