Deployment example
Watcher runs as Docker containers in your environment. These diagrams show two authentication paths. Both paths lead into the same stack.
For a cluster deployment, see the Kubernetes infrastructure example. For Tailscale Aperture and LiteLLM connections, see the gateway deployment reference.
WorkOS authentication
Your reverse proxy terminates TLS and routes traffic. WorkOS handles sign-in.
Bring your own authentication
Your reverse proxy authenticates each request. It removes untrusted identity headers. It adds the trusted user and role headers Watcher consumes. Watcher does not connect to WorkOS on this path.
The stack contains these components:
- Analyzer
- API
- Database
- Bootstrap container
- Retention cleanup worker
- Grading scheduler (when trailing review is enabled)
The retention worker runs continuously. It does two things. First, it deletes grader inputs. These are inputs that have remained unlinked to a tool-call decision for more than eight days. Second, it enforces any enabled organization session-content retention policy.
The session policy is disabled by default. Disabling the policy retains session content indefinitely.
Organization administrators can enable a period between 7 and 365 days. They configure this through the Analyzer's Data Retention controls or the organization settings API.
Both workers run the API image with separate entrypoints.
See Setup for installation. See Security for data flows. See Supply chain security for artifact controls.