provisioning: provision-deploy-vm-mode — deploy services to a VM-mode device over the connection #61
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#61
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 deploy step of the P4 journey for a VM-mode device, driven by the
provisionorchestrator seam. When the operator confirms a deploy, the community's own config
repo drives it over the connection already established at device-add — no
enrollment step is repeated — and progress streams to the dashboard as a checklist
on P4-S4, with every step logged and offering Open/Download. For a VM-mode device
(its NixOS VM already created at device-add), deploy attaches the chosen services
to the VM via
clan.Deploywith no install or takeover phase, so a machinealready running the right OS is not needlessly rebuilt.
This slice builds the plain-deploy path and its log-streaming surface that the
full-install takeover (next slice) then extends.
Supply.Seedis a hardprecondition of every deploy — a drifted, unfed node cannot deploy offline.
Notes: the failure classification and per-service health outcomes live in
neighbouring slices; this slice owns the VM-mode
clan.Deploypath and thestreamed, logged deploy checklist. Flow:
docs/ux/flows/p4-provisioning.mermaid.Acceptance criteria
Blocked by
Task manifest
Done in
e6db7e6(on main).What was built — the S3/S3x → S4 edge at the ADR 0058 seam:
provision.Deploy(internal/provision/deploy.go) runs the confirmed selection for a VM-mode device over the connection already established at device-add — no enrollment step repeated. Which clan hot path runs is read from the install facts (ADR 0059): a VM-mode device getsclan.Deploy, services only — the seam test provesclan.Enrollis never touched, so a machine already running the right OS is never rebuilt. A full-install device still takeover-ready is refused typed (ErrTakeoverPath, nothing run) — provision-deploy-full-install extends from here.clan.Deployapplies that exact revision to the one node.Supply.Seedis a hard precondition: after the commit, strictly beforeclan.Deploy; a failed seed stops the run before any deploy, with the checklist saying so honestly.DeployScreen(P4-S4, wireframe element contract:data-fieldper step,data-statusstreaming, per-step + run-levelopen-log/download-log) composed bySetupSurface— confirming on review is what starts the deploy through the seam's newdeploy()face.Evidence:
internal/provision/deploy_test.go(5 seam tests over a recording clan wrapper — hot-path order seed→deploy, services-only/never-Enroll, streamed frames, per-step logs, seed-failure stop, takeover refusal);dashboard/tests/unit/provisionDeploy.test.ts(4 tests pinning the P4-S4 element contract). Full Go suite + vet, 260 dashboard tests, vue-tsc, eslint all green. STATUS.md updated in the same commit.Health-check gating (stories 14–17) and full-install takeover / deploy-failure recovery (stories 11, 13) are the neighbouring slices', per the manifest's out_of_scope.