Repository navigation
Write the recovery doc and route host pause, resume and move - #314
Merged
Merged
Conversation
Covers each failure's detection, response and operator commands, and the runbook for a planned reboot, with a load-trigger row in AGENTS.md. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012F3VVDtqMjUaFU3QKdzGEf
Outage wakes apply only to outages long enough to count, a blind move's safeguard is the push check rather than a divergence refusal, and rules are cited to their owning docs. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012F3VVDtqMjUaFU3QKdzGEf
Limit the server restart to hosts with a unit, make the tmux_unit caveat explicit, name the retry command, drop the command table in favour of the command reference, and wait for moved windows before a planned reboot. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012F3VVDtqMjUaFU3QKdzGEf
The CLI sent every host command except --all to host ops, which refuse pause, resume and move as unknown ops. Those three now reach the server's command layer, with a test that fails without the routing. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012F3VVDtqMjUaFU3QKdzGEf
Reachability comes from host status, not the dashboard. A manual rerun is a new request unless it passes the printed key. Rules now cite their owner rather than restating counts and times, and the host-command comment names the server forms it routes. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012F3VVDtqMjUaFU3QKdzGEf
…overy doc Owning docs keep the wait and the placement rule, the operator-only commands are named once, and the stale-read caveat moves to host status. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012F3VVDtqMjUaFU3QKdzGEf
Adopting a kept worktree with a stale index lock runs lsof, so the host needs it installed. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012F3VVDtqMjUaFU3QKdzGEf
The setup step names the four tools its checks cover, so lsof is not implied to be checked. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012F3VVDtqMjUaFU3QKdzGEf
The step names the four tools engine setup checks, and stays within the operator-setup word budget. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012F3VVDtqMjUaFU3QKdzGEf
Setup checks the step's tools except lsof and sqlite3, so the step says so rather than listing what setup checks. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012F3VVDtqMjUaFU3QKdzGEf
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012F3VVDtqMjUaFU3QKdzGEf
Merging main brought its operator-setup text in, and the step now states what setup does not check in fewer words. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012F3VVDtqMjUaFU3QKdzGEf
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012F3VVDtqMjUaFU3QKdzGEf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective
Adds
docs/recovery.md: for each of the eight restart-resilience failures, how engine detects it, what it does, and the commands an operator runs, including the planned-reboot runbook. Adds its load-trigger row toAGENTS.md. Also routesengine host pause|resume|moveto the server, which the runbook depends on.Gates
./dev test(every required lane)umask 022: format, vet, lint, unit, coverage, file-length, imports, versions, docs-check, harness-names all PASSinternal/cli/control_test.go:TestServerCommandsRouteByTheirIDs(adds pause, resume and move as server forms);TestHostPauseResumeAndMoveAreNotHostOps(fails withunknown op "pause"without the routing fix).TestTrustFolderKeepsEverythingElse,TestEditFileRetriesThenGivesUpOnABusyFile) when the shell's umask was 0077; they pass with umask 022. CI is the authority for this PR.Rulings
None.
Review
claude-opus-5-5), four fresh reviewers inreviewmode.internal/cli/control.go,serverCommand: the host routing condition.docs/recovery.md, "Host is unreachable" and "Planned reboot": the operator-only and fleet-read caveats.Deviations
internal/cli/control.gois outside the docs-only card. It was raised with the operator, who chose to fix it in this PR.//nolintdirectives, budget changes or skipped lanes.🤖 Generated with Claude Code