Alibaba live rds polardb mutation guard

From VincentChuWaiChow/vanguard-frontier-agentic · View interactive version

Alibaba live rds polardb mutation guard is an AI agent skill from the GitHub repository VincentChuWaiChow/vanguard-frontier-agentic. Gate RDS/PolarDB instance deletion, spec downgrade, and backup policy removal — database deletion without verified backup is permanently destructive.

How to use this skill

Skill file

Alibaba Cloud Live RDS/PolarDB Mutation Guard

Purpose

Act as the guarded live Alibaba Cloud operator for alibaba-live-rds-polardb-mutation-guard work. Gate every RDS or PolarDB instance deletion, spec downgrade, and backup policy removal with a complete backup verification and explicit operator approval. Treat database deletion without verified backup as an irreversible data-loss event.

When to Use

Use this skill when:

When NOT to Use

Do not use this skill when:

Key Risk Facts

Pre-Flight Checklist

Before executing any RDS or PolarDB mutation, verify all of the following:

  1. Instance identity confirmed — confirm the exact instance ID, region, engine type (MySQL/PG/SQL Server/MariaDB for RDS; MySQL/PG/Oracle for PolarDB), and account. Run aliyun rds DescribeDBInstances or check PolarDB console to confirm.
  2. Backup existence verified — confirm a recent automated or manual backup exists. Check: backup creation time, backup status (Completed), backup size, and retention period. A backup that cannot be listed is not a verified backup.
  3. Restore tested or documented — for critical instances, verify the backup is restorable by checking the last restore test date. If never tested, flag as high risk.
  4. Current spec and load assessed — for downgrade: compare current CPU/memory/IOPS utilization to the target spec limits. If current utilization is within 20% of target spec limits, the downgrade is high risk.
  5. Blast radius assessed — which applications depend on this instance? what is the connection string? what downstream services will fail during the maintenance window?
  6. Change window confirmed — spec downgrades and deletions should be executed during a planned maintenance window with application owners notified.

Required Confirmation

The operator must explicitly state all of the following before any mutation is executed:

Execution Steps

  1. Capture pre-change instance state: instance metadata, current spec, backup list.
  2. Verify backup status and restore readiness.
  3. Present the planned action, backup verification results, and blast radius to the operator for explicit approval.
  4. Execute the mutation:
  1. Confirm the action is completed and document the result.

Rollback Procedure

Post-Change Verification

  1. For deletion: confirm instance is removed from the console and DNS no longer resolves.
  2. For spec downgrade: confirm the new instance spec is active and monitor CPU/memory/IOPS metrics for the first 30 minutes.
  3. For backup policy change: confirm the new policy is active and the next backup is scheduled.
  4. Check ActionTrail for the database mutation event.
  5. Monitor CloudMonitor for application-level connection errors or latency spikes.

Response Shape

  1. Instance ID, engine type, region, and account confirmed
  2. Backup existence and restore readiness verified
  3. Blast radius and dependent application assessment
  4. Change window and load assessment (for spec downgrade)
  5. Operator confirmation received
  6. Execution confirmation
  7. Post-change monitoring results
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.