Development
This area is for contributors and provider authors. It maps how ReviewPhin is built and shows where to extend it without touching review orchestration. If you only run or use ReviewPhin, Deployment and Management are the right places.
The four parts
Section titled “The four parts”ReviewPhin has four main parts: the HTTP app, platform providers, the review worker, and storage.
HTTP app (Fastify) ├── serves docs, health, setup routes └── receives /webhooks/<platform> │platform providers ──► review worker ──► storage normalize GitLab/ classify, build tenants, connections, GitHub/custom into context, run model jobs, runs, findings, shared operations harness, reconcile discussion maps, output back model profiles, memoryHTTP app
Section titled “HTTP app”The Fastify app serves static assets, health checks, setup routes, and platform webhooks.
| Route | Purpose |
|---|---|
/docs/* |
Static documentation. |
/healthz |
Liveness check. |
/setup/<platform>/* |
Optional provider setup flow. |
/webhooks/<platform> |
Platform webhook receiver. |
/github/setup/samples |
Dev-only GitHub setup template preview. |
Providers
Section titled “Providers”Platform providers normalize GitLab, GitHub, and future platforms into shared review operations. Storage providers normalize persistence behind the current storage contract. Both are extension points — see providers.
Review worker
Section titled “Review worker”The worker classifies triggers, builds prompt context, runs the model harness, and reconciles output back to the platform. The end-to-end path is described in review flow.
Storage
Section titled “Storage”Storage keeps tenants, platform connections, jobs, runs, findings, discussion mappings, model profiles, and project memory behind the current storage contract.
In this area
Section titled “In this area”- Review flow — from webhook to published review.
- Providers — the platform and storage provider model.
- Custom platform providers — add a code review platform.
- Custom storage adapters — add a persistence backend.
- Contributing to docs — build, preview, and style rules.
- Release publication — public release workflows and repository prerequisites.