Auto-Rollback Generation

Derives inverse SQL from a forward migration and enumerates operations that cannot be reversed rather than fabricating a fake rollback.

Reversibility rules

Output

{
  rollbackSql: 'SQL that reverses the forward script',
  irreversible: ['operation 1 that cannot be reversed'...],
  notes: 'explanation of choices and caveats'
}

The agent is constrained to never invent DDL for tables/columns the forward script doesn't reference.