Skip to content

docs(design): fleet upgrades + add-a-server onboarding (CashPilot-t5ja) - #307

Merged
GeiserX merged 1 commit into
mainfrom
design/fleet-upgrades
Aug 7, 2026
Merged

docs(design): fleet upgrades + add-a-server onboarding (CashPilot-t5ja)#307
GeiserX merged 1 commit into
mainfrom
design/fleet-upgrades

Conversation

@GeiserX

@GeiserX GeiserX commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Design doc only — no behaviour change. The contract for the two chronic fleet papercuts:

Worker upgrades: per-worker upgrade_mode (config-table pattern, like watts/dedicated). announce is the default — the existing update-banner contract (announce, never act) extended per worker, so GitOps fleets stay sovereign. managed is per-worker opt-in: upgrade orders ride the authenticated heartbeat response, and the worker upgrades itself via a short-lived sidecar (a container cannot recreate itself: the deploy path force-removes the caller before creating the replacement, and unless-stopped cannot resurrect a removed container). Same-major only, health-gated with rollback to the previous tag, /data identity byte-for-byte (the per-worker key must survive). Prerequisite _find_container label guard is #306.

Add a server: a wizard around a generated bootstrap command (docker run + compose, prefilled, enrollment watched live via the existing state machine) — zero stored credentials. SSH-from-the-UI is examined and rejected: the UI already commands Docker sockets; holding SSH keys would escalate a UI compromise to root on every server. Scoped single-use enrollment tokens are phase 3.

Rollout is three phases, each its own bead/PR; phase 2 (managed sidecar) is gated on phase 1's announce-mode negative-control test landing in CI.

mkdocs build --strict passes; page added to nav under research.

…y default, sidecar self-upgrade, no stored SSH (CashPilot-t5ja)

The design contract for killing worker version skew and manual server
onboarding: a per-worker upgrade_mode where 'announce' (default, GitOps-
safe) never touches containers and 'managed' lets the worker upgrade
itself via a short-lived sidecar (a container cannot recreate itself —
the deploy path force-removes the caller before creating). Upgrade
orders ride the authenticated heartbeat response; identity in /data
survives byte-for-byte; never crosses a major automatically; rollback
on failed health check. Add-a-server becomes a wizard around a
generated bootstrap command with live enrollment status — SSH-from-the-
UI is examined and rejected (a UI compromise must not escalate to root
on every server), scoped enrollment tokens are phase 3.
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@GeiserX, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 45 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 348b5e1b-63c2-44fd-a552-d892c284a6e9

📥 Commits

Reviewing files that changed from the base of the PR and between 4d3de38 and d517752.

📒 Files selected for processing (2)
  • docs/research/fleet-upgrades-and-onboarding.md
  • mkdocs.yml

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@GeiserX
GeiserX merged commit 268cafa into main Aug 7, 2026
10 checks passed
@GeiserX
GeiserX deleted the design/fleet-upgrades branch August 7, 2026 23:39
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.

1 participant