Repository navigation
docs: add the Cloud Agent VM infrastructure retirement runbook - #11847
Merged
Merged
Conversation
PR #11795 deleted the Cloud Agent VM control-plane source but not the running infrastructure. The previously installed GKE release kept serving its old image (gcr.io/based-hardware/agent-proxy:874d796), which posts directly to the GCE start and reset endpoints. Over 24h that produced 24 starts and 82 resets with no stops or deletes, walking RUNNING from 7 to 20 and costing ~$505/mo against a ~$260/mo all-stopped baseline. Adds an operator runbook that separates the reversible kill switch (pause Scheduler, delete the HPA, scale the proxy to zero, stop survivors) from the irreversible fleet and disk deletion, which is gated on an explicit plaintext-data retention decision. Deleting the HPA before scaling is load-bearing: it is configured with minReplicas=2 and would otherwise restore the Deployment. Also corrects two stale docs -- desktop-updates.mdx still listed the deleted gcp_backend_agent_proxy.yml as an operational path, and the minimum-spend spec still prescribed the deleted reconciler. Merging this document does not change production. Co-Authored-By: Claude Opus 5 <[email protected]>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
This branch was successfully deployed
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.


Summary
Measured case
The 2026-08-19 incident inventory found 52 surviving
omi-agent-*instances and 56 disks (2,800 GB). RUNNING grew from 7 to 20 over approximately 18 hours. In the preceding 24 hours, Cloud Audit Logs showed 24 starts and 82 resets, but no insert, stop, or delete. The old GKE proxy was still installed with two ready replicas, a public Ingress, and imagegcr.io/based-hardware/agent-proxy:874d796; all observed mutations used its mounted JSON-key principal andpython-httpx/0.28.0.The repository evidence supports the mechanism: revision
874d796552posts directly to the GCE start/reset endpoints, while currentmainhas no fleet start/reset implementation. The retained account-deletion path performs fenced deletes only. The deleted release bucket also makes failed boot health likely: the retired provisioner installed a startup wrapper that exits when it cannot download its pinned GCS startup artifact.Two claims remain intentionally bounded rather than overstated:
PERMISSION_DENIED, which is not evidence of absenceRetirement design
The runbook removes the HPA before scaling the Deployment so the HPA's two-replica minimum cannot restart the proxy. Scaling closes in-flight WebSockets; old clients retry against an unavailable backend and later receive no DNS answer. The operator then stops every RUNNING survivor because no remaining fleet-wide automation will do it.
The Ingress/Helm release is removed before DNS. DNS is not a kill switch because cached answers survive, and deleting it first would make rollback TTL-bound while leaving the live mutation source reachable. Once the workload and Ingress are gone, deleting DNS retires the public name without extending the outage rollback path.
Fleet and disk deletion is a separate, explicitly irreversible phase after the data owner chooses an export/retention policy. The retained account-deletion cleanup stays until the fleet and migration records are empty.
Verification
git diff --checkbash -nover every shell fence in the runbookmainfor GCEstart/resetimplementations874d796552and the pre-Retire the cloud Agent VM: tombstone the broker endpoints, delete the control plane #11795 startup-wrapper/release contractThe human committing this change must rerun
scripts/pr-preflight --pr-body-file .tmp/pr-body.mdandmake preflight. This sandbox mounted the linked worktree's shared Git metadata read-only, so the attempted local commit could not create the Git index lock; preflight before that point saw zero committed files and is not presented as diff-scoped evidence.Live GCP/GKE state was not re-read from this sandbox: the installed read-only GCP profile was absent, and the existing OAuth/kube credential helper could not refresh because its config directory is outside the writable sandbox. The production counts above are the operator-supplied incident measurements; the PR makes no production mutation.
Operator action
Follow
docs/runbooks/cloud-agent-vm-infrastructure-retirement.md. Phase 1 stops the active cost leak with reversible actions. Phases 2 and 3 retire serving, credentials, data-bearing capacity, and residual IAM only after their stated gates.