standing: the stray walk-off demands a remove-and-deploy confirm the review honestly refuses — a stray holding no placement offers Deploy (or Erase & deploy), so the baseline restore reds leg 1 #1112

Closed
opened 2026-09-01 08:44:29 +00:00 by ben · 3 comments
Owner

Failure

Drive 20260901T083610Z red at leg 1 (standing) — the first time the arc has red before mint:

the removal review offers no remove-and-deploy confirm
Locator: locator('[data-field="review-impact"]').locator('[data-action="remove-and-deploy"]')
Expected: visible — element(s) not found (30s)

This is not a regression. It is the first drive that ever had a stray to walk off: drive 20260901T064809Z was the first to land a member device and then red (at deploy-takeover, after join/approve/assess/select-files all went green), leaving the orphaned fleet node #1044 describes. assertFleetGatewayOnly found it, tried to walk it off, and could not.

Diagnosis — the walk-off demands a confirm the review honestly refuses to offer

walkOffNode (app/tests/e2e/journey.device.spec.ts) always finishes with confirmRemoveDeploy(page, { requireFiles: false }), which waits on [data-action="remove-and-deploy"].

That id is rendered only when the impact resolves to Remove & deploy (ReviewImpactScreen.vue:89-96), and the seam decides that in internal/provision/impact.go:168-175:

imp.Destructive = imp.Erases != nil || len(imp.Loses) > 0
switch {
case imp.Erases != nil:      imp.Action = "Erase & deploy"
case len(imp.Loses) > 0:     imp.Action = "Remove & deploy"
default:                     imp.Action = "Deploy"
}

The stray from drive 11 holds no assignments — it red at deploy-takeover, which is where the placement deploy happens, so nothing was ever placed on it. An empty selection against no current assignments removes nothing, so Loses is empty and the honest action is Deploy. (And if d.Install.TakeoverReady is still set on that node, the honest action is Erase & deploy — the earlier branch. Either way: never Remove & deploy.)

So the review is behaving correctly and the harness is asking for the one confirm it cannot offer. The walk-off's own comment anticipated the neighbouring case but not this one:

"the confirm is LENIENT (requireFiles:false): a stray may hold no files placement … and its LOSES review then names no files"

It handled "the LOSES rows are empty" but not "there is no LOSES trigger at all, so the action id differs".

Fix

walkOffNode is a baseline restore, not a product-contract assertion (leg 13 owns the LOSES-names-Files contract). It should accept whichever confirm the review honestly offers — remove-and-deploy, erase-and-deploy, or deploy — and fail only if the review offers none of them. The existing requireFiles:false leniency is the same idea one notch further.

Suggested shape: a confirmAnyDeploy(page) (or a lenientAction: true option on confirmRemoveDeploy) that waits for the first of the three ids to become visible and clicks it, logging which one it took, so the evidence line says how the stray was walked off.

Worth deciding explicitly (product semantics, not harness): a takeover-ready stray whose box is already destroyed will offer Erase & deploy. Clicking it is a gateway-side empty-selection deploy that never reaches the dead box — the same convergence #1044 relies on — so it is safe, but the wording is about erasing a machine that no longer exists. If that reads badly, the alternative is to clear TakeoverReady when a node's host is gone, which is a seam change rather than a harness one.

Also worth fixing while here: two comments in this file contradict each other

  • journey.device.spec.ts:423-427 — "then the leg is still green (the baseline is restored, not asserted pristine)"
  • journey.device.spec.ts:1014-1017 — "a restore that cannot complete reds honestly rather than adopting a dirty fleet"

The code implements the second, and the second is the right rule (#1043's false read came from silently adopting a dirty fleet). The first should go, so the next reader does not conclude a red here is impossible.

Acceptance

  • A stray holding no placement is walked off through whichever confirm the review offers; the standing leg reaches green and the fleet rests gateway-only.
  • A review offering none of the three confirms still reds honestly, naming what it saw.
  • The evidence line records which confirm was taken.
  • Leg 13's own removal keeps its strict remove-and-deploy + files assertion — the product contract is unchanged.

Filed by the watching session from the #854 arc (ADR 0174). Diagnosis only, no code change from me: the erase-vs-remove wording choice above has a product-semantics half that should be ruled rather than assumed.

## Failure Drive `20260901T083610Z` red at **leg 1 (`standing`)** — the first time the arc has red before `mint`: ``` the removal review offers no remove-and-deploy confirm Locator: locator('[data-field="review-impact"]').locator('[data-action="remove-and-deploy"]') Expected: visible — element(s) not found (30s) ``` This is not a regression. It is the **first drive that ever had a stray to walk off**: drive `20260901T064809Z` was the first to land a member device *and then* red (at `deploy-takeover`, after `join`/`approve`/`assess`/`select-files` all went green), leaving the orphaned fleet node #1044 describes. `assertFleetGatewayOnly` found it, tried to walk it off, and could not. ## Diagnosis — the walk-off demands a confirm the review honestly refuses to offer `walkOffNode` (`app/tests/e2e/journey.device.spec.ts`) always finishes with `confirmRemoveDeploy(page, { requireFiles: false })`, which waits on `[data-action="remove-and-deploy"]`. That id is rendered only when the impact resolves to `Remove & deploy` (`ReviewImpactScreen.vue:89-96`), and the seam decides that in `internal/provision/impact.go:168-175`: ```go imp.Destructive = imp.Erases != nil || len(imp.Loses) > 0 switch { case imp.Erases != nil: imp.Action = "Erase & deploy" case len(imp.Loses) > 0: imp.Action = "Remove & deploy" default: imp.Action = "Deploy" } ``` The stray from drive 11 **holds no assignments** — it red *at* `deploy-takeover`, which is where the placement deploy happens, so nothing was ever placed on it. An empty selection against no current assignments removes nothing, so `Loses` is empty and the honest action is `Deploy`. (And if `d.Install.TakeoverReady` is still set on that node, the honest action is `Erase & deploy` — the earlier branch. Either way: never `Remove & deploy`.) So the review is behaving correctly and the harness is asking for the one confirm it cannot offer. The walk-off's own comment anticipated the neighbouring case but not this one: > *"the confirm is LENIENT (requireFiles:false): a stray may hold no files placement … and its LOSES review then names no files"* It handled "the LOSES rows are empty" but not "there is no LOSES trigger at all, so the action id differs". ## Fix `walkOffNode` is a **baseline restore**, not a product-contract assertion (leg 13 owns the LOSES-names-Files contract). It should accept whichever confirm the review honestly offers — `remove-and-deploy`, `erase-and-deploy`, or `deploy` — and fail only if the review offers *none* of them. The existing `requireFiles:false` leniency is the same idea one notch further. Suggested shape: a `confirmAnyDeploy(page)` (or a `lenientAction: true` option on `confirmRemoveDeploy`) that waits for the first of the three ids to become visible and clicks it, logging which one it took, so the evidence line says how the stray was walked off. Worth deciding explicitly (product semantics, not harness): a takeover-ready stray whose box is already destroyed will offer **Erase & deploy**. Clicking it is a gateway-side empty-selection deploy that never reaches the dead box — the same convergence #1044 relies on — so it is safe, but the wording is about erasing a machine that no longer exists. If that reads badly, the alternative is to clear `TakeoverReady` when a node's host is gone, which is a seam change rather than a harness one. ## Also worth fixing while here: two comments in this file contradict each other - `journey.device.spec.ts:423-427` — *"then the leg is still green (the baseline is restored, not asserted pristine)"* - `journey.device.spec.ts:1014-1017` — *"a restore that cannot complete reds honestly rather than adopting a dirty fleet"* The code implements the second, and the second is the right rule (#1043's false read came from silently adopting a dirty fleet). The first should go, so the next reader does not conclude a red here is impossible. ## Acceptance - A stray holding no placement is walked off through whichever confirm the review offers; the standing leg reaches green and the fleet rests gateway-only. - A review offering none of the three confirms still reds honestly, naming what it saw. - The evidence line records which confirm was taken. - Leg 13's own removal keeps its strict `remove-and-deploy` + files assertion — the product contract is unchanged. Filed by the watching session from the #854 arc (ADR 0174). Diagnosis only, no code change from me: the erase-vs-remove wording choice above has a product-semantics half that should be ruled rather than assumed.

swarm-claim host=matou-dev-server-01 run=15747
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=15747 (automated multi-host claim — lowest live claim id works this ticket)

Ruled by agent under ADR 0174 — veto anytime.

Ruling: the baseline walk-off takes the harness path the ticket recommends — confirmAnyDeploy clicks whichever of remove-and-deploy / erase-and-deploy / deploy the review honestly offers — and does not change the seam to clear TakeoverReady when a node's host is gone. A takeover-ready stray whose box is already destroyed will therefore be walked off through Erase & deploy.

Why this is a two-way door:

  • It is a test-harness change only (app/tests/e2e/fixtures/deviceProvision.ts + journey.device.spec.ts); no product code (impact.go, ReviewImpactScreen.vue) is touched, so nothing an operator sees in a normal flow changes.
  • It is fully revertible by a later commit, and the alternative (clear TakeoverReady on a gone host — a seam change) stays open.
  • Not on the one-way-door list: no credentials, no security widening, no member-facing trust accept, no data destruction (the erase-and-deploy is a gateway-side empty-selection deploy that never reaches the dead box — the same convergence #1044 relies on), no spend.
  • Proven by the next drive that carries a stray: leg 1 (standing) reaches green through whichever confirm, or reds honestly naming that the review offered none of the three.

The "erasing a machine that no longer exists" wording only ever appears in the drive's own baseline restore of a prior drive's orphan, not in an operator's normal removal flow — so the wording concern does not block this. If a human wants the tidier semantics, the seam change (clear TakeoverReady when the host is gone) is the follow-up, and this harness change does not foreclose it.

Ruled by agent under ADR 0174 — veto anytime. **Ruling:** the baseline walk-off takes the **harness path** the ticket recommends — `confirmAnyDeploy` clicks whichever of `remove-and-deploy` / `erase-and-deploy` / `deploy` the review honestly offers — and does **not** change the seam to clear `TakeoverReady` when a node's host is gone. A takeover-ready stray whose box is already destroyed will therefore be walked off through **Erase & deploy**. **Why this is a two-way door:** - It is a test-harness change only (`app/tests/e2e/fixtures/deviceProvision.ts` + `journey.device.spec.ts`); no product code (`impact.go`, `ReviewImpactScreen.vue`) is touched, so nothing an operator sees in a normal flow changes. - It is fully revertible by a later commit, and the alternative (clear `TakeoverReady` on a gone host — a seam change) stays open. - Not on the one-way-door list: no credentials, no security widening, no member-facing trust accept, no data destruction (the erase-and-deploy is a gateway-side empty-selection deploy that never reaches the dead box — the same convergence #1044 relies on), no spend. - Proven by the next drive that carries a stray: leg 1 (`standing`) reaches green through whichever confirm, or reds honestly naming that the review offered none of the three. The "erasing a machine that no longer exists" wording only ever appears in the **drive's own baseline restore** of a prior drive's orphan, not in an operator's normal removal flow — so the wording concern does not block this. If a human wants the tidier semantics, the seam change (clear `TakeoverReady` when the host is gone) is the follow-up, and this harness change does not foreclose it.

close-report for #1112 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1112,
  "status": "success",
  "commits": [
    "821d2fbc"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/deviceProvision.ts",
    "app/tests/e2e/journey.device.spec.ts"
  ],
  "tests": [
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "npx eslint tests/e2e/fixtures/deviceProvision.ts tests/e2e/journey.device.spec.ts",
      "exit_code": 0
    },
    {
      "command": "npx vitest run tests/e2e/fixtures/deviceProvision.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A stray holding no placement is walked off through whichever confirm the review offers; the standing leg reaches green and the fleet rests gateway-only": "confirmAnyDeploy (deviceProvision.ts) clicks the one of remove-and-deploy/erase-and-deploy/deploy the review renders; walkOffNode calls it (journey.device.spec.ts:994), so an orphan offering plain 'deploy' now walks off",
    "A review offering none of the three confirms still reds honestly, naming what it saw": "confirmAnyDeploy asserts confirm.first() visible with message 'the removal review offers none of remove-and-deploy / erase-and-deploy / deploy — no confirm to walk the stray off'",
    "The evidence line records which confirm was taken": "console.log(`    standing baseline: walking stray off through '${action}' confirm`) reading the clicked button's data-action",
    "Leg 13's own removal keeps its strict remove-and-deploy + files assertion — the product contract is unchanged": "confirmRemoveDeploy retains the LOSES-names-Files assertion and the destructive-confirm remove-and-deploy click; leg 13 (journey.device.spec.ts:879) still calls it strict"
  },
  "summary": "Baseline walk-off now takes whichever deploy confirm the review honestly offers (confirmAnyDeploy), un-redding standing leg 1 when the stray holds no placement.",
  "blockers": []
}
**close-report** for #1112 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1112, "status": "success", "commits": [ "821d2fbc" ], "changed_files": [ "app/tests/e2e/fixtures/deviceProvision.ts", "app/tests/e2e/journey.device.spec.ts" ], "tests": [ { "command": "npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "npx eslint tests/e2e/fixtures/deviceProvision.ts tests/e2e/journey.device.spec.ts", "exit_code": 0 }, { "command": "npx vitest run tests/e2e/fixtures/deviceProvision.test.ts", "exit_code": 0 } ], "criteria": { "A stray holding no placement is walked off through whichever confirm the review offers; the standing leg reaches green and the fleet rests gateway-only": "confirmAnyDeploy (deviceProvision.ts) clicks the one of remove-and-deploy/erase-and-deploy/deploy the review renders; walkOffNode calls it (journey.device.spec.ts:994), so an orphan offering plain 'deploy' now walks off", "A review offering none of the three confirms still reds honestly, naming what it saw": "confirmAnyDeploy asserts confirm.first() visible with message 'the removal review offers none of remove-and-deploy / erase-and-deploy / deploy — no confirm to walk the stray off'", "The evidence line records which confirm was taken": "console.log(` standing baseline: walking stray off through '${action}' confirm`) reading the clicked button's data-action", "Leg 13's own removal keeps its strict remove-and-deploy + files assertion — the product contract is unchanged": "confirmRemoveDeploy retains the LOSES-names-Files assertion and the destructive-confirm remove-and-deploy click; leg 13 (journey.device.spec.ts:879) still calls it strict" }, "summary": "Baseline walk-off now takes whichever deploy confirm the review honestly offers (confirmAnyDeploy), un-redding standing leg 1 when the stray holds no placement.", "blockers": [] } ``` </details>
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#1112
No description provided.