Skip to content

docs: add the Cloud Agent VM infrastructure retirement runbook - #11847

Merged
Git-on-my-level merged 1 commit into
mainfrom
docs/agent-proxy-retirement
Aug 19, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
docs/agent-proxy-retirement

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add the operator runbook for retiring the residual production Cloud Agent VM infrastructure left live after Retire the cloud Agent VM: tombstone the broker endpoints, delete the control plane #11795
  • separate the immediate reversible kill switch (pause Scheduler, remove the HPA, scale proxy to zero, stop VMs) from irreversible data and infrastructure deletion
  • correct stale docs that still prescribed the deleted reconciler and listed the deleted proxy deploy workflow as operational

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 image gcr.io/based-hardware/agent-proxy:874d796; all observed mutations used its mounted JSON-key principal and python-httpx/0.28.0.

The repository evidence supports the mechanism: revision 874d796552 posts directly to the GCE start/reset endpoints, while current main has 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:

  • sole-source attribution is highly likely but not proved until scaling the proxy to zero produces an audit-log quiet period; a copied key could look identical
  • Cloud Scheduler remains unverified because the available read identity received PERMISSION_DENIED, which is not evidence of absence

Retirement 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

The human committing this change must rerun scripts/pr-preflight --pr-body-file .tmp/pr-body.md and make 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.

Review in cubic

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]>
@mintlify

mintlify Bot commented Aug 19, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
omi 🟢 Ready View Preview Aug 19, 2026, 4:50 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{"findings": []}

Open in Web View Automation 

Sent by Cursor Security Agent: Security Reviewer

@Git-on-my-level
Git-on-my-level merged commit 7508248 into main Aug 19, 2026
32 checks passed
@Git-on-my-level
Git-on-my-level deleted the docs/agent-proxy-retirement branch August 19, 2026 06:14

This branch was successfully deployed

1 active deployment
staging - docs — fd2bd429 Deployed Aug 19, 2026 by mintlify[bot]
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