provisioning: provision-review-impact — show the impact and make destruction a deliberate confirm #51
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#51
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 Review impact step of the P4 journey, driven by the
provisionorchestratorseam, where the operator sees exactly what their selection does before anything
runs. For a non-destructive selection, P4-S3 shows what moves, what replicates
(with size and timing), how backup targets change, and the new steady-state load,
and offers a plain Deploy. Impact is computed as a diff against current fleet
state, so a first setup is simply the special case where current state is empty
(ADR 0060).
Whenever the impact destroys something, Review impact becomes the deliberate
destructive confirm P4-S3x, and it carries whichever of two triggers applies. For
a full-install device still
takeover-ready, P4-S3x shows an ⚠ ERASES rowstating the disk is erased and replaced with NixOS, the action reads "Erase &
deploy" rather than "Deploy", and it attributes the consent the device owner
already gave at the machine (who and when) without ever re-asking for consent in
the dashboard (ADR 0024) — nothing has been erased until the operator confirms
here. For a change whose impact drops the last copy of data or a dataset's last
backup, P4-S3x shows an ⚠ LOSES row naming exactly what drops ("Chat drops to no
backup — tōtara holds its only copy"), and the action reads "Remove & deploy".
Notes: the LOSES detection reads the shared control-plane fleet-state/coverage
reader (slice-map ruling 2026-07-25) — there is no build edge to backups; backups'
coverage map is downstream of provisioning (ADR 0061). Rescue's device-ladder
remove rung routes through P4-S3x. Flow:
docs/ux/flows/p4-provisioning.mermaid.Acceptance criteria
takeover-ready, when the operator reaches review, then P4-S3x is shown with an ⚠ ERASES row stating the disk is erased and replaced with NixOS, and the action reads "Erase & deploy", not "Deploy".Blocked by
Task manifest
Done in commit
5d08015on main.What was built — P4-S3 / S3x at the ADR 0058 seam:
provision.ReviewImpact(internal/provision/impact.go) diffs the selection against the device's current assignments — a first setup is the empty-current-state special case (ADR 0060) — and computes destructiveness as part of impact. Plain S3: MOVES with size and timing ("Files & documents gains a second copy — rimu replicates to tōtara (~18 GB, overnight)"), BACKUPS changes ("Chat covered — nightly to tōtara"), steady-state LOAD in the device's own numbers, plain Deploy.takeover-readypromotes to S3x — ⚠ row states the disk is erased and replaced with NixOS, action reads "Erase & deploy", and the device-end consent is attributed (who and when) and never re-asked in the dashboard (ADR 0024); nothing erased until confirmed here, and an already-taken-over device never re-promotes.fleetstate.Datasetnow carriesSizeBytesandBackupHomes(locations replace the bare count, so the no-backup gap and LOSES share one truth),Devicecarries currentServicesassignments andInstall/TakeoverReady/Consentfacts. The catalogue grewSteadyMemBytes(ADR 0064 single source grown sideways, floors untouched) for the LOAD sum.ReviewImpactScreen.vuebuilt to both wireframes'data-field/data-action/data-statuscontract (one screen, two triggers — erases / consent-attribution / loses; deploy / erase-and-deploy / remove-and-deploy), composed bySetupSurface(S2→S3/S3x through the seam, back keeps the ticks, the confirmed deploy emitted onward to the provision-deploy slices).Evidence: seam tests
internal/provision/impact_test.go(8 tests over the fake fleet-state/coverage reader + fake clan adapter, driving plain impact, ERASES with consent attribution, both LOSES forms, coverage-elsewhere staying plain, and the diff-against-current-state behaviour);dashboard/tests/unit/provisionReviewImpact.test.ts(7 component tests pinning the element contract). Full Go suite + vet, 256 dashboard / 114 app / 46 ui-kit TS tests, vue-tsc and eslint all green. STATUS.md updated in the same commit.