provisioning: provision-change-node — re-provision an active node with a delta impact #79
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.
Depends on
Reference
Matou/idss#79
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 standing change loop of the P4 journey (ADR 0063), driven by the
provisionorchestrator seam so a fleet can grow and adapt without removing and re-adding
machines. From an active node's device page, the operator chooses to change its
setup and the same five P4 screens re-run: P4-S1 re-assesses against today's
fleet state, and P4-S2 arrives pre-selected with the node's current role and
services. At review, the impact is shown as a delta — ADDS and REMOVES alongside
the usual moves, backups and load — and because the node is already NixOS the
deploy is a plain
clan.Deploywith no erase.A destructive removal during a change gets the same deliberate confirm as an
erase: when the removal's impact destroys data, Review impact routes to P4-S3x
with the LOSES row (per story 9), so removing the last copy of data is never a
casual click.
Notes: this slice reuses the assess, review-impact and deploy machinery of the
first-setup slices and adds the delta framing and the active-node entry point.
Flow:
docs/ux/flows/p4-provisioning.mermaid.Acceptance criteria
clan.Deploywith no erase (the node is already NixOS).Blocked by
Task manifest
Done in
4414f37(onorigin/main).The standing change loop S5→S1 (ADR 0063). This slice adds only the active-node entry point and the current-setup pre-selection; the assess/review/deploy machinery is the first-setup slices, reused unchanged.
Seam (
internal/provision/change.go):Orchestrator.ChangeSetup(id)re-assesses an already-active node against today s fleet state and opens P4-S2 pre-selected with its current role and services (Assessment.Change+Preselected— a dataset-bound backup target rides a removable recommended row so it keeps its dataset and is un-tickable; every other current service pre-ticks by slug). A not-yet-active device is an error.rolesCurrentFirstorders the role selector to the current role.ReviewImpactreads the ADDS/REMOVES delta against the node s real current assignments;Deployruns a plainclan.Deploy, no erase (node already NixOS, ADR 0059 —clan.Enrollnever touched).Dashboard:
SetupSurfacegains achangeprop that reads the seam s change face and seeds the current-setup pre-tick (edge S5→S1);AssessScreenframes the header as a Change of an active node (data-status="active") rather than a fresh set-up.Evidence:
internal/provision/change_test.go(6 Go seam tests, green) +dashboard/tests/unit/provisionChange.test.ts(7 Vue tests, green);go vet+gofmtclean; the provision Vue suites (change/setup/review-impact/deploy/active/full-install) all green; eslint clean. STATUS.md updated (header + milestone log).