Repository navigation
Description
Review card for ADR-0051 under ADR-0070. Approved; the ADR is Accepted with a link here. Nothing of it is built yet.
Review card
| # | Category | Point | Beats | Reversing costs |
|---|---|---|---|---|
| 1 | trust | The coordinator calls an outside HTTP service, the provisioner; the provider's credentials live there only. Revised: the provisioner is stated as a root of trust like the coordinator's host: whoever runs it can read the lanes on its machines, and no enrolment scheme protects against it being compromised; docs and dashboard say so, and a member can keep its lanes off provisioned nodes (devstack pool provisioned off). |
Provider crates in the coordinator; a command the coordinator runs | Medium |
| 2 | trust | A single-use, short-lived enrolment token makes a machine an approved member and a granted node in one step. Revised: the token is bound to the machine the provisioner named (instance id, public address; the coordinator takes the enrolment only from that address); a second use revokes the node enrolled with it, gives its machine back and alarms the pool's admins with both addresses; provision_confirm = "admin" (pool option, off by default) makes every provisioned node wait for an admin who sees its instance id, address and key fingerprint. |
Admin approves every node by default; provider attestation | High |
| 3 | concept | A provisioned node belongs to the pool, not to the member who caused it: every member's lanes may share it (or, with provision_per = "repo", every lane of one repository). |
A machine per lane or per member | High: it is the trust model of shared machines |
| 4 | term | Provisioning costs money, so a member may cause it only if an admin allowed it (members provision <id> on, off by default), within admin caps on count, CPU and memory. |
Every member may provision; caps only at the provider | Low |
| 5 | concept | Among provisioned nodes placement fills (least free capacity that fits) instead of spreading; a running machine is never resized and a lane never moved. Consequence: one long-lived lane keeps a machine, however empty. | Spread as today; resize one machine; move lanes to empty machines | Medium |
| 6 | contract | New lease state provisioning and requester phase provision; the pool protocol number goes up; the provisioner API (request, accept/refuse with estimate, events: node ready, lease begun/ended with member, repository, lane, need, times, node given back) is a published contract; CLI node serve --provisioner, join --enrol, node members provision. |
No wait: a refused start fails, an external autoscaler reacts | High once a provisioner exists outside the repo |
| 7 | term | On provisioned nodes a stopped lane's slot is kept for the pool's idle time (admin setting, default 30 min, not ADR-0038's hours); a node without lease and slot for that time is given back and deleted, nothing of it kept. | ADR-0038's hours; keep machines warm | Low |
Decided by the agent: the provisioning timeout (the estimate, at most 10 minutes), retrying a deletion until confirmed and keeping an unconfirmed node listed, mutual TLS or a bearer token towards the provisioner, what the dashboard and devstack pool show, that devstack ships no provisioner and counts no money, that a named node (--on <node>) or a local lane is never provisioned.
Approved by the owner: 2026-10-27: points 3–7 as written; points 1 and 2 as revised above (the owner judged the first version a considerable weakness). Sharing stays the lane owner's (ADR-0035): point 3 is about where lanes run, not who sees them.
🤖 Generated with Claude Code
Activity
docs(adr): ADR-0051 accepted on its card (#328): enrolment bound to i…
7schmiede commentedon Oct 27, 2026
Built in #335.