uninstall: the destructive "Remove anyway" path has never run live — and the live leg does not even record WHICH dialog the operator saw (plain Uninstall vs ⚠ LOSES) #1647

Closed
opened 2026-09-20 02:58:43 +00:00 by ben · 5 comments
Owner

What's true today (verified on main @ d4056146)

The Services-tab Uninstall act (#1590, UI 1abf3fca) has two faces (ADR 0060):

  • plain — the removal read carries no LOSES → [data-field="confirm-uninstall"][data-status="plain"], button "Uninstall", POST accept_loses:false.
  • destructive — the removal read carries ⚠ LOSES rows → data-status="destructive", the rows shown word for word, button "Remove anyway", POST accept_loses:true (CatalogueSurface.vue sends it only when the chosen machine's loses is non-empty). The seam REFUSES a LOSES removal without it (internal/provision/removal.go:131).

Brand-reach's uninstall-from-card-archive leg has been green on four consecutive live fires (#1277, runs 20260918T193207Z → 20260919T035808Z). The destructive face is proven only against fakes: internal/provision/removal_test.go, internal/controlapi/provision_integration_test.go:456, dashboard/tests/unit/catalogueUninstall.test.ts, provisionLive.test.ts.

Finding 1 — nobody knows which face ran live

uninstallServiceFromCard (app/tests/e2e/fixtures/brandreach.ts:272-280) is commented "confirm the plain removal" but asserts nothing of the kind: it clicks [data-action="confirm-uninstall"] whatever it says, never reads confirm-uninstall's data-status, never looks for [data-field="loses"], and its frame is taken after the run settles. The green run keeps no trace and the harvested control-plane journal is a tail that no longer holds the POST. So four greens do not say whether the operator saw "Uninstall" or "Remove anyway".

Finding 2 — by the code, a single-gateway removal SHOULD be destructive

ReviewImpact (internal/provision/impact.go:151-156) raises the live-copy LOSES row when datasetHomedBy(datasets, service) finds the service's dataset and lastHolder(ds.Homes, device) — the device is its ONLY home. On the brand-reach world there is one machine, so every dataset-bearing service it removes (archive/Omeka first) has exactly one home. Either:

  • the dialog HAS been destructive on every live fire and the leg clicked "Remove anyway" without noticing — then the destructive path is already exercised and simply unrecorded; or
  • the dialog was plain — then on a real box datasets does not carry the archive's dataset (or its Service/Homes do not match), and an operator deleting their only copy is not warned. That is the failure ADR 0060 exists to prevent.

Settle this FIRST; it decides whether this ticket is "add an assertion" or "fix a real defect".

What to build

  1. Make the leg say what it saw. In uninstallServiceFromCard, read confirm-uninstall's data-status and the [data-field="loses"] rows before clicking; record them on the leg (the runRecordedLeg evidence) and take a frame of the OPEN dialog (<leg>-dialog.png) as well as the settled one. No behaviour change — this alone answers finding 2 on the next fire.
  2. Rule the expectation per service from the catalogue, not by habit: a service with a declared dataset, removed from its only home, must show destructive + a LOSES row naming that dataset and machine; a dataset-less service must show plain. Assert it. If the live answer disagrees with impact.go, that is the defect — fix the read (where datasets is assembled for RemovalFor), do not soften the assertion.
  3. Prove the refusal live, once: POST …/uninstall with accept_loses:false for a LOSES service over the operator session and assert the failed run with the "confirm Remove anyway" sentence, and that the service is STILL running on the box — nothing half-removed.
  4. Prove the destruction: confirm "Remove anyway"; the run settles done; on the guest the service's module file is gone and its unit is not-found (the #1595 / #1351 same-leg on-the-box shape).

Local guest, no spend: rides provision-brands.live.spec.ts / #1277's rail — reopening #1277 arms one fire.

Out of scope

  • The "Backups — 1 dataset needs attention" alert seen on the panel right after a live uninstall (runs above). Ben is working backups in a separate session — note it there, do not chase it here. It may be the SAME signal as finding 2 seen from the other side (a dataset that lost its home).
  • Member-device placement (rides #1451 via #1595). The keeps sentence (stays unset, #1590).

Acceptance

  • The uninstall leg records the dialog's face + LOSES rows and keeps an open-dialog frame
  • Finding 2 answered on the ticket with a live run's evidence
  • A last-copy removal shows destructive + the LOSES row live, and is REFUSED without accept_loses with the service still running
  • "Remove anyway" removes it, proven on the box
  • GOTCHAS entry if finding 2 is a real defect; STATUS.md in the same commit

Related: #1590, #1589, #1595, #1277, ADR 0060, ADR 0097/0100 (the UI classifies nothing — the face must come from the seam).

## What's true today (verified on `main` @ `d4056146`) The Services-tab Uninstall act (#1590, UI `1abf3fca`) has two faces (ADR 0060): - **plain** — the removal read carries no LOSES → `[data-field="confirm-uninstall"][data-status="plain"]`, button "Uninstall", POST `accept_loses:false`. - **destructive** — the removal read carries ⚠ LOSES rows → `data-status="destructive"`, the rows shown word for word, button "Remove anyway", POST `accept_loses:true` (`CatalogueSurface.vue` sends it only when the chosen machine's `loses` is non-empty). The seam REFUSES a LOSES removal without it (`internal/provision/removal.go:131`). Brand-reach's `uninstall-from-card-archive` leg has been green on four consecutive live fires (#1277, runs `20260918T193207Z` → `20260919T035808Z`). The destructive face is proven **only against fakes**: `internal/provision/removal_test.go`, `internal/controlapi/provision_integration_test.go:456`, `dashboard/tests/unit/catalogueUninstall.test.ts`, `provisionLive.test.ts`. ## Finding 1 — nobody knows which face ran live `uninstallServiceFromCard` (`app/tests/e2e/fixtures/brandreach.ts:272-280`) is commented "confirm the plain removal" but asserts nothing of the kind: it clicks `[data-action="confirm-uninstall"]` whatever it says, never reads `confirm-uninstall`'s `data-status`, never looks for `[data-field="loses"]`, and its frame is taken after the run settles. The green run keeps no trace and the harvested control-plane journal is a tail that no longer holds the POST. **So four greens do not say whether the operator saw "Uninstall" or "Remove anyway".** ## Finding 2 — by the code, a single-gateway removal SHOULD be destructive `ReviewImpact` (`internal/provision/impact.go:151-156`) raises the live-copy LOSES row when `datasetHomedBy(datasets, service)` finds the service's dataset and `lastHolder(ds.Homes, device)` — the device is its ONLY home. On the brand-reach world there is one machine, so every dataset-bearing service it removes (archive/Omeka first) has exactly one home. Either: - the dialog HAS been destructive on every live fire and the leg clicked "Remove anyway" without noticing — then the destructive path is already exercised and simply unrecorded; or - the dialog was plain — then on a real box `datasets` does not carry the archive's dataset (or its `Service`/`Homes` do not match), and **an operator deleting their only copy is not warned**. That is the failure ADR 0060 exists to prevent. Settle this FIRST; it decides whether this ticket is "add an assertion" or "fix a real defect". ## What to build 1. **Make the leg say what it saw.** In `uninstallServiceFromCard`, read `confirm-uninstall`'s `data-status` and the `[data-field="loses"]` rows before clicking; record them on the leg (the `runRecordedLeg` evidence) and take a frame of the OPEN dialog (`<leg>-dialog.png`) as well as the settled one. No behaviour change — this alone answers finding 2 on the next fire. 2. **Rule the expectation per service** from the catalogue, not by habit: a service with a declared dataset, removed from its only home, must show `destructive` + a LOSES row naming that dataset and machine; a dataset-less service must show `plain`. Assert it. If the live answer disagrees with `impact.go`, that is the defect — fix the read (where `datasets` is assembled for `RemovalFor`), do not soften the assertion. 3. **Prove the refusal live, once:** POST `…/uninstall` with `accept_loses:false` for a LOSES service over the operator session and assert the failed run with the "confirm Remove anyway" sentence, and that the service is STILL running on the box — nothing half-removed. 4. **Prove the destruction:** confirm "Remove anyway"; the run settles `done`; on the guest the service's module file is gone and its unit is `not-found` (the #1595 / #1351 same-leg on-the-box shape). Local guest, no spend: rides `provision-brands.live.spec.ts` / #1277's rail — reopening #1277 arms one fire. ## Out of scope - The "Backups — 1 dataset needs attention" alert seen on the panel right after a live uninstall (runs above). Ben is working backups in a separate session — note it there, do not chase it here. It may be the SAME signal as finding 2 seen from the other side (a dataset that lost its home). - Member-device placement (rides #1451 via #1595). The `keeps` sentence (stays unset, #1590). ## Acceptance - [ ] The uninstall leg records the dialog's face + LOSES rows and keeps an open-dialog frame - [ ] Finding 2 answered on the ticket with a live run's evidence - [ ] A last-copy removal shows `destructive` + the LOSES row live, and is REFUSED without `accept_loses` with the service still running - [ ] "Remove anyway" removes it, proven on the box - [ ] GOTCHAS entry if finding 2 is a real defect; STATUS.md in the same commit **Related:** #1590, #1589, #1595, #1277, ADR 0060, ADR 0097/0100 (the UI classifies nothing — the face must come from the seam).

Finding 2 SETTLED (by code) — it is the second horn: a real defect. And FIXED.

Traced the whole LOSES chain on main:

  • The uninstall dialog's face is the seam's verdict, not the UI's (ADR 0097/0100): SelectDeviceDialog.vue's destructive = pickedChoice.loses.length > 0, straight from the removal read.
  • RemovalFor → ReviewImpact raises a live-copy LOSES row only when datasetHomedBy(o.fleet.Datasets(), service) finds the service's dataset and the device is its only Homes entry.
  • On a real box o.fleet.Datasets() is Projection.Datasets() = configRepoInventory.Placement().Datasets = fleetstate.DatasetsFromPlacement(nodes), which derives a dataset only from a placement Assignment whose Dataset is non-empty.
  • nodeAssignments (control-plane/.../whole_composition.go) sets Assignment.Dataset only via catalogue.LiveDataset(slug), and LiveDataset returns a name only for slugs in catalogue.liveDatasetServices — which held {"files": true} and nothing else.

So archive (Omeka S, cycles[0], the service the card-uninstall leg removes) was not a live dataset home. Its placement carried no dataset → no LOSES row → the dialog was PLAIN (data-status="plain", button "Uninstall", accept_loses:false). An operator deleting the community's only copy of its sovereign archive was not warned — the exact last-copy loss ADR 0060 exists to prevent. Same for document-archive, whakapapa, surveys, data-collections, newsletters, video. This is why the four green fires' plain confirms went through without complaint: the seam classified nothing to warn about.

files was the only entry because it was Phase 5's whole subject (ADR 0210 ruling 6 uses files as the example, not a files-only rule); the registry was never grown as the data-homing ports landed. whole_composition.go itself anticipates the growth ("richer placement rides the catalogue slices that grow the inventory").

Fix (Ruled by agent under ADR 0174 — veto anytime)

Registered every brand-reach service that keeps community data on its own declared dataset in catalogue.liveDatasetServices (archive, document-archive, whakapapa, surveys, data-collections, newsletters, video). The DatasetsFromPlacement mechanism was always general; only the registry lagged.

  • Why two-way: a revertible one-map change; it adds last-copy-loss protection (it does not enable destruction or widen security posture — not on the one-way-door list); proven by tests I can run.
  • What proves it: internal/catalogue/livedataset_test.go (each service homes its catalogue-Name dataset; chat/code still home none) + control-plane/.../configrepo_inventory_placement_test.go (a gateway carrying the sole archive homes "Community archive" on it alone — the finding-2 seam through the real placement wiring). go test ./internal/catalogue/... ./internal/provision/... ./internal/fleetstate/... ./internal/backup/... ./internal/controlapi/... ./control-plane/... green, zero breakage.
  • The backups ripple you flagged is expected and NOT softened here: those datasets now read as single-copy / no-backup gaps (the "1 dataset needs attention" alert) — the true coverage signal, Ben's backups side. Creating the datasets is finding 2's fix; responding to the coverage gap is his.

Finding 1 (built, no behaviour change)

uninstallServiceFromCard now reads [data-field=confirm-uninstall][data-status] + the ⚠ LOSES rows off the OPEN dialog before confirming, returns them, and the uninstall-from-card-<slug> leg stamps them onto its record (LegMarkers.uninstall) and keeps a <leg>-dialog.png frame. The next fire will say exactly what the operator saw.

Landed

Commit 1776e9c2 on main. GOTCHAS #280; STATUS.md in the same commit; app vitest brandreach 43/43, vue-tsc + gofmt + prettier clean.

Acceptance status:

  • The uninstall leg records the dialog's face + LOSES rows and keeps an open-dialog frame
  • Finding 2 answered on the ticket — by code + a seam test through the real wiring (the live run's evidence rides #1277's next fire, now that the leg records it)
  • A last-copy removal shows destructive + the LOSES row live, REFUSED without accept_loses with the service still running — needs a live guest fire
  • "Remove anyway" removes it, proven on the box — needs a live guest fire
  • GOTCHAS entry (finding 2 is a real defect); STATUS.md in the same commit

Why human

The three live-observation clauses (destructive face shown live, the refusal with the service still running, on-box destruction) are not provable by a test a sandcastle run can run — they need a live guest drive on #1277's rail, which a swarm iteration cannot arm ("reopening #1277 arms one fire"). The build is done and the seam is now correct, so that fire will read destructive and green those clauses. Handing back for a human to arm the live re-proof and close.

## Finding 2 SETTLED (by code) — it is the second horn: a real defect. And FIXED. Traced the whole LOSES chain on `main`: - The uninstall dialog's face is the **seam's** verdict, not the UI's (ADR 0097/0100): `SelectDeviceDialog.vue`'s `destructive` = `pickedChoice.loses.length > 0`, straight from the removal read. - `RemovalFor` → `ReviewImpact` raises a live-copy LOSES row only when `datasetHomedBy(o.fleet.Datasets(), service)` finds the service's dataset **and** the device is its only `Homes` entry. - On a real box `o.fleet.Datasets()` is `Projection.Datasets()` = `configRepoInventory.Placement().Datasets` = `fleetstate.DatasetsFromPlacement(nodes)`, which derives a dataset only from a placement `Assignment` whose `Dataset` is non-empty. - `nodeAssignments` (`control-plane/.../whole_composition.go`) sets `Assignment.Dataset` **only** via `catalogue.LiveDataset(slug)`, and `LiveDataset` returns a name only for slugs in `catalogue.liveDatasetServices` — which held **`{"files": true}`** and nothing else. So `archive` (Omeka S, `cycles[0]`, the service the card-uninstall leg removes) was **not** a live dataset home. Its placement carried no dataset → no LOSES row → **the dialog was PLAIN** (`data-status="plain"`, button "Uninstall", `accept_loses:false`). An operator deleting the community's only copy of its sovereign archive was **not warned** — the exact last-copy loss ADR 0060 exists to prevent. Same for document-archive, whakapapa, surveys, data-collections, newsletters, video. This is why the four green fires' plain confirms went through without complaint: the seam classified nothing to warn about. `files` was the only entry because it was Phase 5's whole subject (ADR 0210 ruling 6 uses `files` as the example, not a files-only rule); the registry was never grown as the data-homing ports landed. `whole_composition.go` itself anticipates the growth ("richer placement rides the catalogue slices that grow the inventory"). ### Fix (Ruled by agent under ADR 0174 — veto anytime) Registered every brand-reach service that keeps community data on its own declared dataset in `catalogue.liveDatasetServices` (archive, document-archive, whakapapa, surveys, data-collections, newsletters, video). The `DatasetsFromPlacement` mechanism was always general; only the registry lagged. - **Why two-way:** a revertible one-map change; it **adds** last-copy-loss protection (it does not enable destruction or widen security posture — not on the one-way-door list); proven by tests I can run. - **What proves it:** `internal/catalogue/livedataset_test.go` (each service homes its catalogue-Name dataset; chat/code still home none) + `control-plane/.../configrepo_inventory_placement_test.go` (a gateway carrying the sole `archive` homes "Community archive" on it alone — the finding-2 seam through the real placement wiring). `go test ./internal/catalogue/... ./internal/provision/... ./internal/fleetstate/... ./internal/backup/... ./internal/controlapi/... ./control-plane/...` green, **zero breakage**. - **The backups ripple you flagged is expected and NOT softened here:** those datasets now read as single-copy / no-backup gaps (the "1 dataset needs attention" alert) — the true coverage signal, Ben's backups side. Creating the datasets is finding 2's fix; responding to the coverage gap is his. ### Finding 1 (built, no behaviour change) `uninstallServiceFromCard` now reads `[data-field=confirm-uninstall][data-status]` + the ⚠ LOSES rows off the OPEN dialog **before** confirming, returns them, and the `uninstall-from-card-<slug>` leg stamps them onto its record (`LegMarkers.uninstall`) and keeps a `<leg>-dialog.png` frame. The next fire will say exactly what the operator saw. ### Landed Commit `1776e9c2` on `main`. GOTCHAS #280; STATUS.md in the same commit; app vitest brandreach 43/43, vue-tsc + gofmt + prettier clean. Acceptance status: - [x] The uninstall leg records the dialog's face + LOSES rows and keeps an open-dialog frame - [x] Finding 2 answered on the ticket — by code + a seam test through the real wiring (the *live* run's evidence rides #1277's next fire, now that the leg records it) - [ ] A last-copy removal shows `destructive` + the LOSES row **live**, REFUSED without `accept_loses` with the service still running — **needs a live guest fire** - [ ] "Remove anyway" removes it, proven on the box — **needs a live guest fire** - [x] GOTCHAS entry (finding 2 is a real defect); STATUS.md in the same commit ## Why human The three live-observation clauses (destructive face shown live, the refusal with the service still running, on-box destruction) are **not provable by a test a sandcastle run can run** — they need a live guest drive on #1277's rail, which a swarm iteration cannot arm ("reopening #1277 arms one fire"). The build is done and the seam is now correct, so that fire will read **destructive** and green those clauses. Handing back for a human to arm the live re-proof and close.
Author
Owner

Ben RULED the conflict this fix opened (in session, 2026-09-20) — ADR 0263, landed 542639c4.

1776e9c2 made seven services dataset homes, which contradicted #1281 (a service untick is a plain Deploy — nothing on disk is deleted) and would have turned the next brand-reach fire red at its second cycle: confirmRemoveDeploy still demanded plain-deploy, and its own refusal said "re-rule this fixture together with that change, never alone" (GOTCHAS #295). Three options were put to Ben; he ruled: a last live copy is a loss only when NO verified backup of the dataset exists anywhere.

  • ReviewImpact raises the live-copy LOSES row only when the device is the sole home AND BackupHomes is empty; a backed-up dataset's last live copy is the plain removal (new test). The uninstall dialog reads the same impact. The registry from this ticket stays.
  • Both brand-reach removal doors are re-ruled: that world is one machine with no backup target, so the card uninstall must read destructive with a LOSES row naming the service's data, and the untick review must be destructive-confirm / remove-and-deploy beside one. Fixture pins 45/45.
  • For the backups lane: nothing in the live control plane populates BackupHomes, so on a real box the rule always warns today (fails safe) until verified snapshot holders reach the fleet projection.

Live re-proof is running by hand on bens-mac-04 (Ben asked for that host; elitebook-03 is busy with an IDIP drive): synced to main, payload rebuilt, smoke-private-path.sh --target local-guest --drive brands. No executor/reporter there, so I will read the leg list + the new -dialog.png frames and report here. #1277 is reopened to carry it; elitebook's queue was NOT changed, so nothing double-fires.

Still not covered by that run: acceptance clause 3's refusal half (POST without accept_loses, service still running) — the drive clicks the confirm, it never sends the refused request.

**Ben RULED the conflict this fix opened (in session, 2026-09-20) — ADR 0263, landed `542639c4`.** `1776e9c2` made seven services dataset homes, which contradicted #1281 (a service untick is a plain Deploy — nothing on disk is deleted) and would have turned the next brand-reach fire red at its second cycle: `confirmRemoveDeploy` still demanded `plain-deploy`, and its own refusal said *"re-rule this fixture together with that change, never alone"* (GOTCHAS #295). Three options were put to Ben; he ruled: **a last live copy is a loss only when NO verified backup of the dataset exists anywhere.** - `ReviewImpact` raises the live-copy LOSES row only when the device is the sole home AND `BackupHomes` is empty; a backed-up dataset's last live copy is the plain removal (new test). The uninstall dialog reads the same impact. The registry from this ticket stays. - Both brand-reach removal doors are re-ruled: that world is one machine with no backup target, so the card uninstall must read `destructive` with a LOSES row naming the service's data, and the untick review must be `destructive-confirm` / `remove-and-deploy` beside one. Fixture pins 45/45. - **For the backups lane:** nothing in the live control plane populates `BackupHomes`, so on a real box the rule always warns today (fails safe) until verified snapshot holders reach the fleet projection. **Live re-proof is running by hand on `bens-mac-04`** (Ben asked for that host; elitebook-03 is busy with an IDIP drive): synced to main, payload rebuilt, `smoke-private-path.sh --target local-guest --drive brands`. No executor/reporter there, so I will read the leg list + the new `-dialog.png` frames and report here. #1277 is reopened to carry it; elitebook's queue was NOT changed, so nothing double-fires. Still not covered by that run: acceptance clause 3's *refusal* half (POST without `accept_loses`, service still running) — the drive clicks the confirm, it never sends the refused request.
Author
Owner

LIVE: brand-reach GREEN 39/39 on a13f8b2c — ADR 0263 proven on both removal doors

Run 20260920T223233Z, by hand on bens-mac-04 (local guest, no spend), 58.5 min, zero skips, verdict.json commit a13f8b2c. Leg list + frames read by me (117 frames, every -w1 distinct 39/39).

  • uninstall-from-card-archive recorded on the leg: {"status":"destructive","loses":["⚠ LOSES Community archive drops to no live copy — gateway holds its only copy."]}; the kept -dialog.png shows the LOSES row and "Remove anyway"; the removal settled done and the card went back to Install. On the four fires before this ticket the same click was an unwarned plain "Uninstall".
  • remove-document-archive, -whakapapa, -surveys, -data-collections, -newsletters, -video all green through the re-ruled untick door, which now REQUIRES destructive-confirm / remove-and-deploy beside a LOSES row naming that service's data (it throws otherwise) — so each of the six was warned too. After remove-video the gateway card lists no services.
  • deploy-video green again (192 s) — ADR 0257's closure-built plugin, a third host.

The first fire there (20260920T213503Z) proved the same two doors and then went red at deploy-surveys on a HEALTHY box — a race in the drive's own bar sampler, fixed in a13f8b2c (GOTCHAS #297). Not this ticket's defect.

Acceptance

  • the leg records the face + LOSES rows and keeps an open-dialog frame
  • finding 2 answered with a live run's evidence
  • a last-copy removal shows destructive + the LOSES row live
  • …and is REFUSED without accept_loses, the service still running — NOT driven: the walker clicks the confirm, it never sends the unflagged request. Seam-proven only (removal_test.go, provision_integration_test.go:456).
  • "Remove anyway" removes it (run settles done, card back to Install, fleet card empty)

What is left is one small leg: before confirming, POST …/uninstall {service, accept_loses:false} over the operator session, assert the failed run carries "confirm Remove anyway", and assert the service still answers — then confirm as now. Relabelled ready-for-agent for that; the live proof is one more local-guest fire (bens-mac-04 is set up for it: ~/drive-logs/brands-20260920b.sh).

Also seen, not this ticket: the dialog's machine card read "community archive down" ~3 s after its deploy settled — consistent with monitoring's 30 s aggregation still holding the mid-install verdict (monitor.go, #1478's note); clears by itself.

## LIVE: brand-reach GREEN 39/39 on `a13f8b2c` — ADR 0263 proven on both removal doors Run `20260920T223233Z`, by hand on `bens-mac-04` (local guest, no spend), 58.5 min, zero skips, `verdict.json` commit `a13f8b2c`. Leg list + frames read by me (117 frames, every `-w1` distinct 39/39). - **`uninstall-from-card-archive`** recorded on the leg: `{"status":"destructive","loses":["⚠ LOSES Community archive drops to no live copy — gateway holds its only copy."]}`; the kept `-dialog.png` shows the LOSES row and **"Remove anyway"**; the removal settled `done` and the card went back to Install. On the four fires before this ticket the same click was an unwarned plain "Uninstall". - **`remove-document-archive`, `-whakapapa`, `-surveys`, `-data-collections`, `-newsletters`, `-video`** all green through the re-ruled untick door, which now REQUIRES `destructive-confirm` / `remove-and-deploy` beside a LOSES row naming that service's data (it throws otherwise) — so each of the six was warned too. After `remove-video` the gateway card lists no services. - `deploy-video` green again (192 s) — ADR 0257's closure-built plugin, a third host. The first fire there (`20260920T213503Z`) proved the same two doors and then went red at `deploy-surveys` on a HEALTHY box — a race in the drive's own bar sampler, fixed in `a13f8b2c` (GOTCHAS #297). Not this ticket's defect. ### Acceptance - [x] the leg records the face + LOSES rows and keeps an open-dialog frame - [x] finding 2 answered with a live run's evidence - [x] a last-copy removal shows `destructive` + the LOSES row live - [ ] **…and is REFUSED without `accept_loses`, the service still running** — NOT driven: the walker clicks the confirm, it never sends the unflagged request. Seam-proven only (`removal_test.go`, `provision_integration_test.go:456`). - [x] "Remove anyway" removes it (run settles done, card back to Install, fleet card empty) **What is left is one small leg:** before confirming, POST `…/uninstall {service, accept_loses:false}` over the operator session, assert the failed run carries "confirm Remove anyway", and assert the service still answers — then confirm as now. Relabelled `ready-for-agent` for that; the live proof is one more local-guest fire (bens-mac-04 is set up for it: `~/drive-logs/brands-20260920b.sh`). Also seen, not this ticket: the dialog's machine card read "community archive down" ~3 s after its deploy settled — consistent with monitoring's 30 s aggregation still holding the mid-install verdict (`monitor.go`, #1478's note); clears by itself.

The refusal leg is BUILT + offline-proven + landed (ebe5da4f on main) — handing back for the one live fire that closes the last clause

Ben relabelled ready-for-agent for "one small leg": the ADR 0060 REFUSAL half of acceptance clause 3. Built it.

What landed (ebe5da4f):

  • refuseUninstallWithoutAccept (app/tests/e2e/fixtures/brandreach.ts) — reads the fleet's one gateway id, POSTs {service, accept_loses:false} over the dashboard's OWN operator session (the same session the dialog's confirm uses), gets 202, then polls the SAME device-scoped deploy snapshot the dialog polls until its terminal failure.error carries the seam's confirm Remove anyway sentence (DDR 0156 — the destruction never runs; it lands as a failure frame). refusalNamesRemoveAnyway is pure and grounded in removal.go's own words (a test reads the Go source so a re-worded seam re-grounds the drive, never leaves it falsely green).
  • expectServiceStillOnGuest — the inverse of expectServiceGoneFromGuest: the <slug>-brand unit still reads LoadState=loaded on the guest, so nothing was half-removed (the seam refuses at ReviewImpact, BEFORE any deploy).
  • Wired as a refuse-uninstall-${svc.slug} leg that runs BEFORE the uninstall-from-card confirm on cycles[0] (archive), stamping both facts onto the leg (LegMarkers.refusal). The walker's own confirm always sends the flag, so this is the ONLY leg that drives the unflagged request live.

Proven offline: red-first vitest → app fixtures brandreach 50/50, vue-tsc + eslint + prettier clean. (The 2 reds in updatesFeed.test.ts are spawnSync go ENOENT — a Go binary absent from the swarm shell, pre-existing and unrelated; the pre-push nix develop .#go-ci lint gate passed.)

Acceptance status:

  • the leg records the face + LOSES rows and keeps an open-dialog frame (a13f8b2c)
  • finding 2 answered with a live run's evidence (a13f8b2c)
  • a last-copy removal shows destructive + the LOSES row live (a13f8b2c)
  • …and is REFUSED without accept_loses, the service still running — the leg that drives it is now BUILT + offline-proven; it needs one live local-guest fire to be OBSERVED green
  • "Remove anyway" removes it, proven on the box (a13f8b2c)

Why human

The refusal clause is only closed when the new refuse-uninstall-archive leg runs GREEN on a live guest — a local-guest fire on #1277's rail (bens-mac-04 is already set up: ~/drive-logs/brands-20260920b.sh) that a swarm iteration cannot arm ("reopening #1277 arms one fire"). Not a decision and not a test I can run — a human arms the fire, reads the leg + its refusal marker, and checks the last box. No new GOTCHAS (finding 2's hazard is #280).

## The refusal leg is BUILT + offline-proven + landed (`ebe5da4f` on `main`) — handing back for the one live fire that closes the last clause Ben relabelled `ready-for-agent` for "one small leg": the ADR 0060 REFUSAL half of acceptance clause 3. Built it. **What landed (`ebe5da4f`):** - `refuseUninstallWithoutAccept` (`app/tests/e2e/fixtures/brandreach.ts`) — reads the fleet's one gateway id, POSTs `{service, accept_loses:false}` over the dashboard's OWN operator session (the same session the dialog's confirm uses), gets 202, then polls the SAME device-scoped deploy snapshot the dialog polls until its terminal `failure.error` carries the seam's `confirm Remove anyway` sentence (DDR 0156 — the destruction never runs; it lands as a failure frame). `refusalNamesRemoveAnyway` is pure and grounded in `removal.go`'s own words (a test reads the Go source so a re-worded seam re-grounds the drive, never leaves it falsely green). - `expectServiceStillOnGuest` — the inverse of `expectServiceGoneFromGuest`: the `<slug>-brand` unit still reads `LoadState=loaded` on the guest, so nothing was half-removed (the seam refuses at ReviewImpact, BEFORE any deploy). - Wired as a `refuse-uninstall-${svc.slug}` leg that runs BEFORE the `uninstall-from-card` confirm on `cycles[0]` (archive), stamping both facts onto the leg (`LegMarkers.refusal`). The walker's own confirm always sends the flag, so this is the ONLY leg that drives the unflagged request live. **Proven offline:** red-first vitest → app fixtures `brandreach` 50/50, `vue-tsc` + `eslint` + `prettier` clean. (The 2 reds in `updatesFeed.test.ts` are `spawnSync go ENOENT` — a Go binary absent from the swarm shell, pre-existing and unrelated; the pre-push `nix develop .#go-ci` lint gate passed.) **Acceptance status:** - [x] the leg records the face + LOSES rows and keeps an open-dialog frame (`a13f8b2c`) - [x] finding 2 answered with a live run's evidence (`a13f8b2c`) - [x] a last-copy removal shows `destructive` + the LOSES row live (`a13f8b2c`) - [ ] **…and is REFUSED without `accept_loses`, the service still running** — the leg that drives it is now BUILT + offline-proven; it needs one live local-guest fire to be OBSERVED green - [x] "Remove anyway" removes it, proven on the box (`a13f8b2c`) ## Why human The refusal clause is only closed when the new `refuse-uninstall-archive` leg runs GREEN on a live guest — a local-guest fire on #1277's rail (`bens-mac-04` is already set up: `~/drive-logs/brands-20260920b.sh`) that a swarm iteration cannot arm ("reopening #1277 arms one fire"). Not a decision and not a test I can run — a human arms the fire, reads the leg + its `refusal` marker, and checks the last box. No new GOTCHAS (finding 2's hazard is #280).
Author
Owner

LIVE: every acceptance clause proven — brand-reach GREEN 40/40 — closing

Run 20260921T033507Z, by hand on bens-mac-04 (local guest, no spend), verdict.json: 40 legs, 40 green, 0 red, 0 skip, commit ce1a72a3 (contains ebe5da4f). Leg list and frames read in session.

  • refuse-uninstall-archive — green, 0.6 s. Recorded on the leg: failure: "provision: uninstalling Community archive from gateway drops the last copy (Community archive drops to no live copy — gateway holds its only copy.) — confirm Remove anyway to accept it", stillRunning: true. The unflagged request was REFUSED over the operator's own session and the archive's unit was still loaded on the guest — nothing half-removed.
  • uninstall-from-card-archive — green, 29 s. status: destructive, LOSES row as above, open-dialog frame kept; "Remove anyway" removed it.
  • The six untick removals green through the door that requires destructive-confirm / remove-and-deploy beside a LOSES row.

Acceptance

  • the leg records the face + LOSES rows and keeps an open-dialog frame
  • finding 2 answered with a live run's evidence
  • a last-copy removal shows destructive + the LOSES row live, and is REFUSED without accept_loses with the service still running
  • "Remove anyway" removes it
  • GOTCHAS (#280, #295) + STATUS

An earlier fire the same morning (20260921T031657Z) went red at founding enroll-copy — 583/688 store paths, still advancing: main had moved and the quick re-fire script refreshes only the tree-built bits, not the payload's warm gateway cache. Re-warmed and re-fired; not a defect (the 09-11 cold-host signature on this machine).

Open elsewhere, recorded in ADR 0263: nothing live populates Dataset.BackupHomes, so on a real box the rule always warns until the backups lane feeds verified snapshot holders into the fleet projection.

## LIVE: every acceptance clause proven — brand-reach GREEN 40/40 — closing Run `20260921T033507Z`, by hand on `bens-mac-04` (local guest, no spend), `verdict.json`: 40 legs, 40 green, 0 red, 0 skip, commit `ce1a72a3` (contains `ebe5da4f`). Leg list and frames read in session. - **`refuse-uninstall-archive` — green, 0.6 s.** Recorded on the leg: `failure: "provision: uninstalling Community archive from gateway drops the last copy (Community archive drops to no live copy — gateway holds its only copy.) — confirm Remove anyway to accept it"`, `stillRunning: true`. The unflagged request was REFUSED over the operator's own session and the archive's unit was still loaded on the guest — nothing half-removed. - **`uninstall-from-card-archive` — green, 29 s.** `status: destructive`, LOSES row as above, open-dialog frame kept; "Remove anyway" removed it. - The six untick removals green through the door that requires `destructive-confirm` / `remove-and-deploy` beside a LOSES row. ### Acceptance - [x] the leg records the face + LOSES rows and keeps an open-dialog frame - [x] finding 2 answered with a live run's evidence - [x] a last-copy removal shows `destructive` + the LOSES row live, and is REFUSED without `accept_loses` with the service still running - [x] "Remove anyway" removes it - [x] GOTCHAS (#280, #295) + STATUS An earlier fire the same morning (`20260921T031657Z`) went red at founding `enroll-copy` — 583/688 store paths, still advancing: `main` had moved and the quick re-fire script refreshes only the tree-built bits, not the payload's warm gateway cache. Re-warmed and re-fired; not a defect (the 09-11 cold-host signature on this machine). Open elsewhere, recorded in ADR 0263: nothing live populates `Dataset.BackupHomes`, so on a real box the rule always warns until the backups lane feeds verified snapshot holders into the fleet projection.
ben closed this issue 2026-09-21 04:36:06 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1647
No description provided.