DEV Community

Avery Li
Avery Li

Posted on

A Pairing Exercise for Auditing an AI Rollback Plan

Review an AI rollback proposal only when you can name the state restored and the state left untouched. This exercise does not assert the plan is correct.

Kubernetes Deployment docs state a revision appears on a Pod template change, scaling adds none, and rollback restores the template without reversing unrelated database changes (Deployment docs). RBAC grants combine additively: a RoleBinding grants inside its namespace even if it references a ClusterRole, and removing one binding may leave equivalent access (RBAC docs).

Prerequisites

Two recorded Deployment revisions; read-only live Deployment and history access; and an owner or ledger confirming schema version. Without one, omit the schema claim and test only Pod template restoration.

Steps

  1. Ask for the object, field, revision, and history entry; reject a vague last-good version.
  2. List changes outside the Pod template; each needs an owner and undo.
  3. Define verification observations before the undo.
  4. Confirm the target revision exists and its Pod template contains the cited fields; record live Pod template fields and migration version before undo.
  5. For access claims, inspect all RoleBindings and ClusterRoleBindings for the subject; additive grants mean a remaining grant leaves the claimed reduction unproven.

Test

Inputs: planned rollback from A to recorded B; a Pod template change distinguishing them; live and B-recorded Pod template fields; and migration version. After undo, check whether live template fields match B and whether migration version is unchanged. If no revision distinguishes the change, scaling alone created none; stop and re-ask. If fields differ from B, reject the plan. If fields match but migration differs, the boundary is insufficient for the observed data-state change; keep the review open and involve the migration owner. This does not prove the assistant caused it.

Limits

StatefulSets, custom controllers, and multi-cluster changes need their own revision evidence. This tests process coverage, not correctness or safety.

This article was created with AI assistance.

Top comments (0)