Skip to main content

Control Plane

The control plane coordinates remote worker leases, validation jobs, state records, logs, artifacts, repair, and garbage collection.

The control node does not run repo code. It owns leases, job records, scheduling, and cleanup state. Worker/testbox hosts run repo commands and produce artifacts.

Roles​

RoleResponsibility
DevboxSubmits workspaces and reads submission status.
Control nodeOwns leases, job records, scheduling, and cleanup state.
Worker/testboxExecutes remote jobs and stores artifacts.
GitHubReceives comments and checks derived from evidence.

State Roots​

PathMeaning
/srv/x4/controlControl jobs, leases, worker state, and local artifacts.
/srv/x4/workspacesWorker-side execution workspaces.
/srv/x4/artifactsWorker-side logs and artifacts.
.x4/control-submissions/Devbox-side submission records.

Operator Commands​

x4 control doctor
x4 control status
x4 control workers
x4 control inspect --job <control-job-id>
x4 control gc --dry-run
x4 control gc --prune --retention-days 30

Repair​

Repair is a manual verification action:

x4 control repair --target <worker> --reason "manual cleanup verified"

Use repair only after inspecting the failed job and confirming worker state is safe.