deploy-from-stale-worktree-silent-rollback - Diagnose stale-worktree deployments that roll back fixes
Diagnoses deployments that package stale local checkout files, identifies the source commit, and provides preflight, rebuild, or traffic-switch fixes.
Tags
Updated: 2026-10-15Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Diagnose stale build contexts
- Download Cloud Build source tarballs
- Byte-diff sources against git history
- Identify the packaged source commit
- Run deploy preflight checks
- Rebuild from current main checkout
- Switch traffic to known-good revisions
Inputs
- Git repository checkout
- Deploy script directory
- Git worktree list
- Cloud Run service name
- Cloud Run region
- Google Cloud project
- Cloud Build ID
- Expected commit sentinel
Outputs
- Stale-source diagnosis
- Identified source commit
- Preflight status
- Rebuilt serving image
- Updated deployment revision
- Traffic switch to known-good revision
Requirements
- Git repository access
- gcloud CLI
- Cloud Run permissions
- Cloud Build permissions
- Cloud Storage permissions
- Access to deployment history
