How reeveci/reeve works
Purpose and topology
Reeve is a Go-based, extensible CI/CD system organized as a multi-module workspace. Its control plane is reeve-server, execution is split between reeve-worker and reeve-runner, and plugins provide pipeline-specific behavior. Docker images package the server, worker, and runner for deployment.
Primary entry points
• Server process: reeve-server/main.go
• Worker process: reeve-worker/main.go
• Runner process: reeve-runner/main.go
• Operator CLI/tools: reeve-tools/main.go, with commands rooted at reeve-tools/cmd/root.go
• Example plugin executable: plugin-example/main.go
These are separate Go modules under the workspace (go.work), so they can be built and deployed independently.
Server: orchestration and API boundary
reeve-server is the CI/CD control plane. Its API layer exposes server-facing operations and worker interaction endpoints through reeve-server/api/serve.go and related message/worker handlers such as reeve-server/api/worker-queue.go, reeve-server/api/worker-result.go, and reeve-server/api/worker-logs.go.
Queue-processing stages are explicit:
• Trigger intake and pipeline initiation: reeve-server/handle-trigger-queue.go
• General message handling: reeve-server/handle-message-queues.go
• Notifications: reeve-server/handle-notify-queue.go
This separates external/API-driven events from asynchronous orchestration and notification work.
Plugin and pipeline contract boundary
The server runtime defines the plugin integration model in reeve-server/runtime/contract.go, reeve-server/runtime/pluginapi.go, and reeve-server/runtime/pluginprovider.go. Plugins are therefore not embedded into the main server API; they are supplied through a runtime/provider boundary.
plugin-example/main.go demonstrates the expected plugin shape. Shared plugin behavior is configured through environment-based settings, including enablement, trusted domains/tasks, and an optional Git setup task. This makes trust validation and task selection central boundaries before execution.
Execution path: worker and runner
The worker is the server-facing execution agent (reeve-worker/main.go). It is container-oriented: reeve-worker/docker/docker-runner.sh and reeve-worker/docker/docker-entrypoint.sh indicate that it prepares or launches runner workloads through Docker.
The runner is the task runtime (reeve-runner/main.go, reeve-runner/runtime/runtime.go) and has its own API serving layer in reeve-runner/api/serve.go. The likely control flow is: server queues work for workers; a worker creates/controls an isolated runner; the runner executes the assigned workload and reports status, logs, and results through worker-facing server APIs.
External services and infrastructure
Docker is a material runtime dependency, represented by image definitions for all deployable roles:
• reeve-server/docker/Dockerfile
• reeve-worker/docker/Dockerfile
• reeve-runner/docker/Dockerfile
The tooling includes Docker authentication support in reeve-tools/cmd/login-docker.go, suggesting registry access is part of operational workflows. Build/release image workflows are centralized in scripts/build-docker.sh, scripts/push-docker.sh, and scripts/release.sh.
Key control and data flow
1. A trigger enters the server API and/or trigger queue.
2. Server queue handlers select and orchestrate plugin-defined CI/CD work.
3. Work is dispatched to workers through the worker queue boundary.
4. Workers provision runners, using Docker as the execution isolation layer.
5. Runners execute tasks and return acknowledgements, logs, and results to server worker endpoints.
6. Server processes completion/messages and emits notifications through the notify queue.
The principal trust boundaries are server API ingress, plugin task/domain validation, and Docker-isolated execution in the worker/runner path.
Main entry points: handle-message-queues.go Message handling · release.sh Image release scripts · main.go Reeve Runner · worker-queue.go Worker endpoints
Components 19
Control plane
Server API, orchestration, and plugin contract.
- Reeve Server · CI/CD orchestration service.
reeve-server/main.go - Server API · Ingress plus worker interaction endpoints.
reeve-server/api/serve.go - Trigger intake · Initiates pipelines from triggers.
reeve-server/handle-trigger-queue.go - Message handling · Processes asynchronous orchestration messages.
reeve-server/handle-message-queues.go - Notifications · Emits completion notifications.
reeve-server/handle-notify-queue.go - Worker endpoints · Receives worker queue, results, and logs.
reeve-server/api/worker-queue.go - Plugin runtime contract · Validates and provides plugin-defined tasks.
reeve-server/runtime/contract.go
Execution plane
Worker-provisioned isolated task runtime.
- Reeve Worker · Server-facing agent that launches runners.
reeve-worker/main.go - Worker Docker launcher · Prepares and launches runner containers.
reeve-worker/docker/docker-runner.sh - Reeve Runner · Isolated assigned-workload runtime.
reeve-runner/main.go - Runner runtime · Executes assigned tasks.
reeve-runner/runtime/runtime.go - Runner API · Runner control interface.
reeve-runner/api/serve.go - Docker · Execution and deployment container runtime.
reeve-worker/docker/Dockerfile
Plugin boundary
Extensible pipeline behavior.
- Example plugin · Reference implementation of the plugin contract.
plugin-example/main.go
Operations
Operator tooling and image release workflows.
- Operator CLI · Administrative commands including registry login.
reeve-tools/main.go - Tool commands
reeve-tools/cmd/root.go - Image release scripts · Builds, pushes, and releases deployable images.
scripts/release.sh - Server image
reeve-server/docker/Dockerfile - Runner image
reeve-runner/docker/Dockerfile
Connections 18
- Reeve Server → Server API: serves
- Server API → Trigger intake: accepts triggers
- Trigger intake → Message handling: initiates pipeline work
- Message handling → Plugin runtime contract: selects validated tasks
- Example plugin → Plugin runtime contract: implements
- Message handling → Worker endpoints: dispatches work
- Reeve Worker → Worker endpoints: polls and reports · Returns status, logs, and results.
- Worker endpoints → Message handling: feeds completions
- Message handling → Notifications: queues notifications
- Reeve Worker → Worker Docker launcher: launches through
- Worker Docker launcher → Docker: uses
- Docker → Reeve Runner: isolates
- Reeve Runner → Runner runtime: executes with
- Reeve Runner → Runner API: serves
- Operator CLI → Tool commands: loads commands
- Image release scripts → Server image: builds and publishes
- Image release scripts → Docker: publishes images via
- Image release scripts → Runner image: builds and publishes