Runtime pieces
Review flow
For each review, Scopy:- Fetches pull request files from GitHub.
- Applies repository include and exclude settings.
- Builds readable diff context.
- Checks out repository context for deeper inspection.
- Collects affected symbols, related files, text search results, and optional semantic context.
- Runs the main reviewer model.
- Runs a verifier model over candidate findings.
- Publishes confirmed findings to GitHub.
- Records status, usage, billing data, and debug artifacts.
Data and artifacts
PostgreSQL stores the primary product state: users, sessions, workspaces, repositories, pull requests, review runs, findings, billing, and worker jobs. Review workspaces are written underREVIEW_WORKDIR. Debug artifacts are written under REVIEW_RUNS_DIR. Persist these paths when you need to inspect review behavior after restarts.
