update: a helper node's failure rolls back the gateway's own software — the trigger is never logged, and the restore brings back an OLDER control panel (two releases stuck off the demo) #2025

Closed
opened 2026-09-30 06:35:14 +00:00 by ben · 2 comments
Owner

Why

Whakatōhea Demo, 2026-09-30. Since Ben's laptop "Tahi" joined as a helper (now node-req-0003, VM mode, target root@100.83.255.167), every rollout lands the gateway's software and then undoes it within ~4 s, and the whole release is lost:

05:56:55 fleetland: landed the fleet software on the gateway
05:56:55 fleetland: node does not carry the fleet software — skipped  node=node-req-0003
05:56:55 update: bridge changed — restarting idss-idp onto the new binary and self-testing
05:56:58 fleetland: restored the previous fleet software on the gateway before the rolled-back restart
05:56:58 update rollout failed revision=1b94d5b2… err="update: rollback node-req-0003: clan: the generation rollback scope runs over the node's established SSH connection and needs the per-operation target resolver (ADR 0039) — it lands with engine-adapters:clan-adapter-enroll (#163)…"

The same at 06:31:54–58 for 2026.09.3128 (f6e6e6cf, which carries #2023). The bridge is not the cause: its /selftest answers {"ok":true,…}.

Two releases' fixes are stuck off the demo: the panel's fetch fix (#2019) and the founding-member gate (#2021). Worse, the restore put back a control panel OLDER than the one that was running (the served index-*.js no longer carries #2019's wrapped fetch), so the steward seat's app unlock broke again.

Three defects

  1. The error that triggers the rollback is never logged. Only the rollback's own failure is. Log (and keep in the rollout record) the stage, node and error that started the rollback.
  2. A helper node's failure rolls back the gateway's own software. Find what fails on node-req-0003 (seed/deploy/health against a VM-mode helper). A failure confined to a member device should skip or quarantine that node, not undo the gateway.
  3. The generation rollback for a member device is unbuilt (#163) and its absence turns a rollback into a failed rollout. And the land restore brought back a .previous older than the running panel — check what *.previous holds after consecutive lands.

Acceptance criteria

  • The rollout log and record name the stage, node and error that started any rollback.
  • A fleet whose only failing node is a helper lands the gateway's software and names the helper as skipped/failed.
  • After a land-restore, the gateway runs exactly the software it ran before that land (seam test over two consecutive lands).
  • On the demo, 2026.09.3128 or later lands and stays landed.
  • GOTCHAS entry.

Task manifest

task: a-helper-node-failure-no-longer-rolls-back-the-gateway
interface: |
  rollback trigger -> logged + recorded
  helper-only failure -> gateway lands; helper named
  land restore -> the exact previous generation
seam: internal/update rollout/rollback tests
depends_on: []
needs_human_decision: []

Filed 2026-09-30 from the demo, where it has blocked two releases.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH

## Why Whakatōhea Demo, 2026-09-30. Since Ben's laptop "Tahi" joined as a helper (now `node-req-0003`, VM mode, target `root@100.83.255.167`), **every rollout lands the gateway's software and then undoes it within ~4 s**, and the whole release is lost: ``` 05:56:55 fleetland: landed the fleet software on the gateway 05:56:55 fleetland: node does not carry the fleet software — skipped node=node-req-0003 05:56:55 update: bridge changed — restarting idss-idp onto the new binary and self-testing 05:56:58 fleetland: restored the previous fleet software on the gateway before the rolled-back restart 05:56:58 update rollout failed revision=1b94d5b2… err="update: rollback node-req-0003: clan: the generation rollback scope runs over the node's established SSH connection and needs the per-operation target resolver (ADR 0039) — it lands with engine-adapters:clan-adapter-enroll (#163)…" ``` The same at 06:31:54–58 for 2026.09.3128 (`f6e6e6cf`, which carries #2023). The bridge is not the cause: its `/selftest` answers `{"ok":true,…}`. Two releases' fixes are stuck off the demo: the panel's fetch fix (#2019) and the founding-member gate (#2021). Worse, the restore put back a control panel OLDER than the one that was running (the served `index-*.js` no longer carries #2019's wrapped fetch), so the steward seat's app unlock broke again. ## Three defects 1. **The error that triggers the rollback is never logged.** Only the rollback's own failure is. Log (and keep in the rollout record) the stage, node and error that started the rollback. 2. **A helper node's failure rolls back the gateway's own software.** Find what fails on `node-req-0003` (seed/deploy/health against a VM-mode helper). A failure confined to a member device should skip or quarantine that node, not undo the gateway. 3. **The generation rollback for a member device is unbuilt** (#163) and its absence turns a rollback into a failed rollout. And the land restore brought back a `.previous` older than the running panel — check what `*.previous` holds after consecutive lands. ## Acceptance criteria - [ ] The rollout log and record name the stage, node and error that started any rollback. - [ ] A fleet whose only failing node is a helper lands the gateway's software and names the helper as skipped/failed. - [ ] After a land-restore, the gateway runs exactly the software it ran before that land (seam test over two consecutive lands). - [ ] On the demo, 2026.09.3128 or later lands and stays landed. - [ ] GOTCHAS entry. ## Task manifest ```yaml task: a-helper-node-failure-no-longer-rolls-back-the-gateway interface: | rollback trigger -> logged + recorded helper-only failure -> gateway lands; helper named land restore -> the exact previous generation seam: internal/update rollout/rollback tests depends_on: [] needs_human_decision: [] ``` --- *Filed 2026-09-30 from the demo, where it has blocked two releases.* 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH

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

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

close-report for #2025 — status success

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

envelope
{
  "issue": 2025,
  "status": "success",
  "commits": [
    "e18649f7"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/whole_composition.go",
    "docs/GOTCHAS.md",
    "internal/update/rollback.go",
    "internal/update/rollout.go",
    "internal/update/rollout_member_test.go",
    "internal/update/rolloutview.go",
    "internal/update/update.go"
  ],
  "tests": [
    {
      "command": "go test -count=1 ./internal/update/...",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/fleetland/... ./internal/controlapi/...",
      "exit_code": 0
    },
    {
      "command": "go test ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "go build ./... && go vet ./internal/update/... ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./internal/update/... ./control-plane/cmd/control-plane/...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The rollout log and record name the stage, node and error that started any rollback": "RolloutResult.RollbackTrigger (rollout.go, set in the deploy gate) is carried onto the retained RolloutView (rolloutview.go) and logged via Orchestrator.WithLog in rollBack (rollback.go); proven by TestRollout_RollbackTrigger_LoggedAndRecorded (asserts stage/node/check on the result, on the retained view, and in the captured log)",
    "A fleet whose only failing node is a helper lands the gateway's software and names the helper as skipped/failed": "FleetNode.Member deploys on its own StageMember; a failure is node-scoped in RolloutResult.DeployFailed and the rollout still applies; proven by TestRollout_HelperFailure_GatewayLandsHelperNamed (Applied true, RolledBack false, no clan rollbacks, helper named, converged 1 of 2)",
    "After a land-restore, the gateway runs exactly the software it ran before that land (seam test over two consecutive lands)": "A helper failure no longer restores at all, so the gateway keeps the newest landed software — proven by TestRollout_HelperFailure_GatewaySoftwareNotRestored (land recorded, restore never called); the restore-exact-previous over two consecutive lands is already pinned by fleetland's TestRestore_PutsPreviousBinaryAndPanelBack (lands rev-A then rev-B, restore brings rev-A back exactly)",
    "On the demo, 2026.09.3128 or later lands and stays landed": "whole_composition.go updateFleet.Nodes now sets Member from catalogue.RoleHelper, so node-req-0003's failure is node-scoped and never restores the gateway; unproven_by_seam — the seam proves the mechanics against fakes, the live demo leg is not run here",
    "GOTCHAS entry": "docs/GOTCHAS.md #384 added in the same commit"
  },
  "summary": "A member/Helper device's failure is node-scoped so it never rolls back the gateway's software; the rollback trigger is logged and recorded, and a member is never a fleet-rollback target.",
  "blockers": []
}
**close-report** for #2025 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 2025, "status": "success", "commits": [ "e18649f7" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/whole_composition.go", "docs/GOTCHAS.md", "internal/update/rollback.go", "internal/update/rollout.go", "internal/update/rollout_member_test.go", "internal/update/rolloutview.go", "internal/update/update.go" ], "tests": [ { "command": "go test -count=1 ./internal/update/...", "exit_code": 0 }, { "command": "go test ./internal/fleetland/... ./internal/controlapi/...", "exit_code": 0 }, { "command": "go test ./control-plane/...", "exit_code": 0 }, { "command": "go build ./... && go vet ./internal/update/... ./control-plane/...", "exit_code": 0 }, { "command": "golangci-lint run ./internal/update/... ./control-plane/cmd/control-plane/...", "exit_code": 0 } ], "criteria": { "The rollout log and record name the stage, node and error that started any rollback": "RolloutResult.RollbackTrigger (rollout.go, set in the deploy gate) is carried onto the retained RolloutView (rolloutview.go) and logged via Orchestrator.WithLog in rollBack (rollback.go); proven by TestRollout_RollbackTrigger_LoggedAndRecorded (asserts stage/node/check on the result, on the retained view, and in the captured log)", "A fleet whose only failing node is a helper lands the gateway's software and names the helper as skipped/failed": "FleetNode.Member deploys on its own StageMember; a failure is node-scoped in RolloutResult.DeployFailed and the rollout still applies; proven by TestRollout_HelperFailure_GatewayLandsHelperNamed (Applied true, RolledBack false, no clan rollbacks, helper named, converged 1 of 2)", "After a land-restore, the gateway runs exactly the software it ran before that land (seam test over two consecutive lands)": "A helper failure no longer restores at all, so the gateway keeps the newest landed software — proven by TestRollout_HelperFailure_GatewaySoftwareNotRestored (land recorded, restore never called); the restore-exact-previous over two consecutive lands is already pinned by fleetland's TestRestore_PutsPreviousBinaryAndPanelBack (lands rev-A then rev-B, restore brings rev-A back exactly)", "On the demo, 2026.09.3128 or later lands and stays landed": "whole_composition.go updateFleet.Nodes now sets Member from catalogue.RoleHelper, so node-req-0003's failure is node-scoped and never restores the gateway; unproven_by_seam — the seam proves the mechanics against fakes, the live demo leg is not run here", "GOTCHAS entry": "docs/GOTCHAS.md #384 added in the same commit" }, "summary": "A member/Helper device's failure is node-scoped so it never rolls back the gateway's software; the rollback trigger is logged and recorded, and a member is never a fleet-rollback target.", "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#2025
No description provided.