provisioning: provision-deploy-full-install — take a full-install device over to NixOS and deploy #69
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Feature spec: #17 (provisioning).
What to build
The real takeover path of the P4 deploy step, driven by the
provisionorchestrator seam. For a full-install device still
takeover-ready, deploy drivesclan.Enrollment— theinstall --phasesNixOS takeover that device-add onlystaged — over the disk, joins the clan, and then deploys services, in that order
(ADR 0059).
provisionreads thetakeover-readystate to choose Enrollment overclan.Deployand to read the install-mode consent already captured in theNodeCert; it never re-asks consent. Deploy streams to P4-S4 on the same logged
checklist the VM-mode path built.
A deploy-itself failure (config, connectivity or disk) fails safely with a plain
error and logs, and the recovery matches the mode: VM mode retries clean (delete,
recreate); a full install rolls the NixOS generation back once the new OS is on;
and a failure of the takeover itself resumes or escalates to rescue. The
escalation to rescue is named here, not implemented — the rescue tracks are P8's.
Notes: this slice consumes device-add's
takeover-readycontract (network facts,consent in the NodeCert) via the
device-add:full-install-takeover-readyedge.Supply.Seedis a hard precondition of the deploy. Flow:docs/ux/flows/p4-provisioning.mermaid.Acceptance criteria
takeover-readydevice, when deploy runs, then it takes the device over to NixOS, joins the clan, then deploys services — in that order.Blocked by
Task manifest
Done in commit
b1ccab2on main.What was built — the S3x → S4 edge at the ADR 0058 seam:
provision.Deploynow owns both clan hot paths (ADR 0059). A full-install device stilltakeover-readygetsclan.Enrollment— the stagedinstall --phasestakeover over the disk, then the clan join, then services, in that order; the recording seam test proves enroll → advance → seed →clan.Deploywith services strictly last, applying the committed selection's exact revision (Supply.Seedstill a hard precondition, strictly before the services apply).ErrTakeoverPathis gone — the typed refusal #61 left is now the real path.Contract consumption (story 11) — device-add's #59 takeover-ready contract is read, never re-collected: the probe's network facts ride the
EnrollRequest(newfleetstate.Install.Network), and the NodeCert's install-mode consent is attributed on the run ("Full install consented at the machine by Hine, Wed 22 Jul — read from the NodeCert, never re-asked here.") — ADR 0024, no consent verb exists on the path.Failure recovery (story 13) — every deploy-itself failure lands a classified
DeployFailure(step, clan-taxonomy kind, plain error, the step's own log — ADR 0027) with its mode-matched recovery: VM mode → clean retry (delete, recreate); full install once the new OS is on → NixOS generation rollback, actually driven at the seam (clan.Rollbackscopegeneration, ADR 0017); a stopped takeover → resume (durable snapshot on the orchestrator; the next deploy runsclan.Resumeand the fake proves only[install reboot]re-run — destructive disk work never re-runs); a dead takeover → escalate to rescue, named only (the rescue tracks are P8's, per out_of_scope).UI (P4-S4 wireframe) —
DeployScreengrows the five-row takeover checklist, the consent line (data-field="consent"), and the failure box (plain error + the failed step's Open/Download log + recovery,data-status= recovery mode) with the S4 → S2 back-to-select route and Resume for a stopped takeover, wired throughSetupSurface.Evidence —
internal/provision/takeover.go+takeover_test.go(5 seam tests) and the VM clean-retry test indeploy_test.go;dashboard/tests/unit/provisionDeployFullInstall.test.ts(6 tests). Full Go suite + vet green; dashboard vitest (266 tests), vue-tsc, eslint green. STATUS.md updated in the same commit.matou-build-agent referenced this issue2026-08-23 23:39:16 +00:00
enroll-copy's ceiling to a measured rented copy — with #716's drain fix the shared 20mdefaultPhaseTimeoutnow CUTS a cold copy instead of hanging on it #717matou-build-agent referenced this issue2026-08-23 23:39:18 +00:00
nix copystill orphans itsssh— #716's drain window freesRun, it does not reap the process tree #718enroll-copy's shipped ServerAliveInterval=30/CountMax=10 did not terminate a live stallednix copy, ran the full 90m ceiling — the fix's synthetic proof does not match live behaviour #716enroll-copy's shipped ServerAliveInterval=30/CountMax=10 did not terminate a live stallednix copy, ran the full 90m ceiling — the fix's synthetic proof does not match live behaviour #716