The controller manager¶
The controller manager reconciles control-plane desired state for builds, deployments, assignments, integration coverage and models. One lease holder runs a bounded cycle that advances these records and reports a count for every class of work.
The cycle¶
flowchart TB
subgraph CP["CONTROL PLANE"]
direction TB
ROLE{{"Service role<br/>all or controller"}}
LEASE{{"Controller lease<br/>claim or renew"}}
subgraph REC["RECONCILERS"]
direction LR
DEF["Workflow definition<br/>validation"]
ASN["Assignment leases<br/>and convergence"]
BUILD["Builds and<br/>runtime foundations"]
DEPLOY["Project and model<br/>deployments"]
SEC["Integration coverage"]
end
STATE[("Desired state and<br/>assignment ledger")]
ROLE --> LEASE --> REC --> STATE
end
all and controller enter the cycle. Other recognised service roles return
service-role-skip. A replica that cannot claim or renew the controller lease
returns not-leader, so one replica advances desired state at a time.
Reconciliation order¶
The controller manager performs these operations in order:
- Recompile persisted workflow definitions and record definition drift.
- Requeue expired data-plane assignment leases.
- Reconcile integration coverage evidence.
- Advance project and model build requests.
- Reconcile project and model deployment desired state.
- Mark assignment convergence timeouts.
- Reconcile model autoscale-to-zero state.
Workflow and agent execution begins after project deployment. The kernel owns Run, task, retry, cancellation, stream and buffer state through the Application ABI and syscall surface. The controller manager continues to supervise the deployed runtime through desired state and assignment evidence.
Cycle evidence¶
The cycle result carries counts for expired assignment requeues, build state changes, deployment state changes, convergence timeouts, autoscaling decisions and integration coverage changes. A successful cycle with zero counts means the recorded state already matches its desired state. A rising timeout count means an assignment owner has stopped converging within its admitted deadline.
Each reconciler has a bounded scan limit. Backlogs drain over successive cycles, while one large workspace cannot make a cycle unbounded.
See The scheduler for project runtime placement and The dispatcher for pull-time assignment publication.