Skip to content

Bound recovery retries and retain emergency-stop intent during uncertain lifecycle - #63

Merged
candlelightner merged 2 commits into
mainfrom
fix/issue-61-recovery-controls
Oct 23, 2026
Merged

candlelightner merged 2 commits into
mainfrom
fix/issue-61-recovery-controls

Conversation

@candlelightner

@candlelightner candlelightner commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Workers whose startup repeatedly fails can currently cycle without a durable retry ceiling, and uncertain lifecycle state can prevent operators from recording a stop request. This change adds a persistent per-worker retry limit (default 3, configurable 0–100), reserved attempt counts, sanitized startup failure phases, and an explicit warned/confirmed desired-state control. Emergency stop records stopped intent before waiting for in-flight operations and reports success only after authoritative shutdown confirmation. Late startup/unarchive results cannot overwrite a newer stop request.

The worker detail panel exposes retry limits, counts, paused recovery, last failure, and warned desired-state controls. REST and MCP expose recovery, desired-state and emergency-stop controls. Global administrators can administer all applicable resources; group administrators are limited to their current group and descendants, with live scope reauthorization and existing lock checks. Platform administrator workspace controls remain global-only. Structured logs explain accepted intent, retry attempts, exhaustion, cancellation, failure phase, and confirmed/unconfirmed cleanup.

Validation: full CI passed 1,981 module/helper tests (66 skipped), typechecking, 35 isolated API/UI regressions, and both amd64/arm64 image builds. Focused tests cover durable budgets, late stop races, unknown state, lock protection, subtree authorization/revocation, and shutdown confirmation. The production recovery panel also passed an isolated browser fixture. The immutable merged-main image was deployed and passed bounded live acceptance for scoped MCP authorization/revocation, lock checks, warned intent during unknown state, confirmed emergency shutdown of frozen ordinary/group-administrator VMs, persistent workspace data, and retry exhaustion remaining paused across two further reconciliation intervals. Temporary fixtures were removed; original worker inventory/states were verified against the pre-test snapshot. Additional stale pane-polling and long-operation visibility findings are documented in issue #61 as follow-up work.

Guest GPU driver compatibility remains a worker/guest administration responsibility; this change bounds recovery and improves diagnosis rather than altering guest drivers. The possible storage/udev interaction remains an unconfirmed incident hypothesis.

Closes #61.

@candlelightner
candlelightner marked this pull request as ready for review October 23, 2026 12:09
@candlelightner
candlelightner merged commit 593ab79 into main Oct 23, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Emergency shutdown must remain available regardless of lifecycle confirmation

1 participant