Services tab Uninstall (backend): the control-plane narrow door, removable on the catalogue read, and the live client's two verbs — the UI is on main and draws no button until this lands #1590
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
2 participants
Notifications
Due date
No due date set.
Depends on
Reference
Matou/idss#1590
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?
Where this stands
The UI and the seam are on main (
1abf3fca, approved by Ben on the harness 2026-09-18): a running service's card on the Services tab carries Uninstall, which opens the install dialog run backwards (SelectDeviceDialog.vue,mode="uninstall"). It is proven against the fake only (dashboard/tests/unit/catalogueUninstall.test.ts).The served control panel draws no Uninstall button today, by construction: the act renders only where the seam answers BOTH
removalForanduninstallServiceAND the catalogue read marks the running entryremovable— and the live client implements neither verb, and the read never sends the fact. This ticket is the control-plane half that turns it on.The template is the install narrow door, #1435:
GET /api/v1/provision/devices/{device_id}/fit/{service}+POST /api/v1/provision/devices/{device_id}/install(internal/controlapi/provision.go),Orchestrator.DeviceFitFor/InstallService(internal/provision/fit.go),HttpProvisionClient.deviceFitFor/installService(dashboard/src/lib/api/provisionClient.ts). Build the mirror, not a new shape.What to build
GET /api/v1/provision/devices/{device_id}/removal/{service}→ what removing this ONE service from this ONE device does. It is computed by running the existingReviewImpactover the device's CURRENT selection minus the service — never a second estimate — and carries:resources(the spec lineDeviceFitForalready words),freed(plain words, the service's steady footprint via the samesteadyForthe impact LOAD uses),frees(cpu_pct/mem_pct/disk_pct, the mirror of fit'sadds), andloses(the impact'sLosesrows, word for word). A service the device does not carry is a Problem, not an empty answer.POST /api/v1/provision/devices/{device_id}/uninstallwith{"service": "...", "accept_loses": bool}→ 202 + the deploy handle, the run streamed to the SAME device-scoped deploy snapshot (DDR 0156) the dialog already polls. Server-side it composes: current selection minus the service → Review impact → the existing deploy (so every removal mirror indeployServicesOnly— and #1589's — is what runs; no second removal path). ADR 0060: where the impact carries LOSES rows andaccept_losesis false, the seam refuses and the run lands as a terminal failure frame; the dialog only sendstruefrom its deliberate Remove anyway confirm, which is shown only when the read carried LOSES.removableon the catalogue read.BrowseInstallable.removable(already on the dashboard type) is set by the control plane for a RUNNING entry the uninstall door will take. Never true for the platform's own services (front door, mesh, identity, control plane) or anything else the community cannot stand without; state the rule in one place ininternal/catalogue/ the browse projection and test it. Ruling needed inside this ticket (two-way door, ADR 0174 — rule it and say so): whether mail and backup copies are removable from here or only from the device's change journey.HttpProvisionClient.removalFor(service)— one fleet read for the rows (asdeviceFitFordoes), the entry'snodesfor WHICH devices carry it, and the removal read per carrying device;uninstallService(service, deviceId, onProgress)— the POST, thenpollToCompletion, each frame projected toInstallProgresswith the removal's own words ("… is no longer running on …"), a failure asfailedwith the seam's reason. The dialog sendsaccept_loses— extend the seam signature for it rather than inferring it client-side.packages/openapi-spec/openapi.yaml) and the generated client, in the same change.Done looks like
InstallService's: a plain removal deploys the selection minus the service; a LOSES removal withoutaccept_losesis refused with nothing changed; with it, it runs; a service the device does not carry is refused.losesis byte-identical to whatReviewImpactreturns for the same selection (one test asserting both from one fixture).provisionLive.test.tsgains the live-client cases (thedeviceFitFor/installServicecases are the pattern).remove-<slug>leg (app/tests/e2e/provision-brands.live.spec.ts) is NOT rewritten onto this door — it proves the change journey. Add ONE uninstall-from-the-card leg for one service, with the same on-the-guest proof (expectServiceGoneFromGuest, #1351): the card check alone has greened a removal that never left the box before (GOTCHAS #207).keepsstays unset. The dialog has a line for what happens to the service's data on the box, and hides it when the read sends none. Nothing in the removal code was found to delete a service's state directory, but that was not traced per service — so v1 sends nokeeps. If you can PROVE a true sentence per service (state dir survives the module drop AND a re-install adopts it), file it as a follow-up rather than shipping a guess here.Design-tier note
Neither the install dialog nor this one has a flow edge or wireframe under
docs/ux/— both landed from UI-iteration sessions with Ben. Thep4-provisioningflow's removal edges (S2 → S3x → S4) describe what runs underneath and stay true. Not a blocker for this ticket.Depends on
#1589 — this door puts operators on the removal path routinely, and two slugs have no real removal until that lands.
Services tab: an Uninstall act on a running service's card, following the install dialog's flowto Services tab Uninstall (backend): the control-plane narrow door,removableon the catalogue read, and the live client's two verbs — the UI is on main and draws no button until this landsswarm-claim host=bens-mac-04 run=26650
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Decision (needs_human_decision from item 3): whether mail and backup copies are removable from the Services-tab Uninstall card, or only from the device's change journey.
Ruling: NOT removable from the card — both stay on the device's change journey.
backup-copy(InstallService:s.Slug == catalogue.LowestFloorJob().Slug), so this door MIRRORS that refusal — it is removed from the change journey, exactly as it is added there.renderShippingService && !PortRoutable→CanDeployService(mail)is false), so provisioning never stands it up — it never RUNS as a card to uninstall. Naming it in the rule states the ruling plainly rather than leaning on 'it never runs'.Why two-way (not a one-way door): revertible by a later commit and provable by the browse-read test (
TestCatalogueRead_RemovableGateMarksRunningHelpersNotThePlatform). Not on the one-way-door list (no credentials, no security-posture widening, no member-facing trust accept, no data destruction, no spend). A later ticket can widen the rule if a real removal-from-card path is proven for either.The rule lives in one place:
removableServiceininternal/controlapi/catalogue.go.close-report for #1590 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
Live evidence (2026-09-18, brand-reach drive
20260918T193207Z, local guest, HEAD ≥48ac9477) — recorded here because the drive itself is still open on an unrelated red.uninstall-from-card-archiveGREEN, 59 s: Services tab → Community archive's card → Uninstall → the dialog →POST /api/v1/provision/devices/{id}/uninstall→ the deploy → the card back to Install, plus the on-the-guest module check (expectServiceGoneFromGuest, #1351). Frame eyeballed (artifacts/legs/uninstall-from-card-archive-dash.png): the archive sits in INSTALLABLE wearing Install, no RUNNING badge; a distinct image on the guest's own brand.remove-document-archive,-whakapapa,-surveys,-data-collections,-newsletters) are green through #1589's rewiredremovedloop.deploy-video(35 green) onpeertube-oidc's first live deploy — #1606, the video port's sign-in, nothing to do with this door.Still unproven: the door on a MEMBER-DEVICE placement and #1589's two slugs (Document editing, Calendar & contacts) — #1595. The destructive path (
accept_loses/ Remove anyway) has never been driven live; no drive stands up a last-copy removal from the card. Not in production: a live community takes this only through the update lane (#1578 → #1569 → #1562).One thing seen on the frame worth a look by whoever owns backups: after the uninstall the Services tab wears
SERVICE ALERT — Backups — 1 dataset needs attention. It may be a young community's standing state rather than a consequence of the removal — not checked.